Skip to content
This repository was archived by the owner on Apr 9, 2026. It is now read-only.

Commit dfeaa03

Browse files
committed
add more env var
1 parent 505df2c commit dfeaa03

3 files changed

Lines changed: 20 additions & 2 deletions

File tree

charts/write-freely/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.1.0
18+
version: 0.1.1
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

charts/write-freely/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# writefreely
22

3-
![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.15.1](https://img.shields.io/badge/AppVersion-v0.15.1-informational?style=flat-square)
3+
![Version: 0.1.1](https://img.shields.io/badge/Version-0.1.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.15.1](https://img.shields.io/badge/AppVersion-v0.15.1-informational?style=flat-square)
44

55
A Helm chart for deploying writefreely on Kubernetes
66

charts/write-freely/templates/deployment.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,15 @@ spec:
5959
{{- else }}
6060
key: {{ .Values.externalDatabase.existingSecret.secretKeys.username }}
6161
{{- end }}
62+
- name: WF_USER
63+
valueFrom:
64+
secretKeyRef:
65+
name: {{ template "writefreely.mysql.secretName" . }}
66+
{{- if .Values.mysql.enabled }}
67+
key: mysql-username
68+
{{- else }}
69+
key: {{ .Values.externalDatabase.existingSecret.secretKeys.username }}
70+
{{- end }}
6271
- name: MYSQL_PASSWORD
6372
valueFrom:
6473
secretKeyRef:
@@ -68,6 +77,15 @@ spec:
6877
{{- else }}
6978
key: {{ .Values.externalDatabase.existingSecret.secretKeys.password }}
7079
{{- end }}
80+
- name: WF_PASSWORD
81+
valueFrom:
82+
secretKeyRef:
83+
name: {{ template "writefreely.mysql.secretName" . }}
84+
{{- if .Values.mysql.enabled }}
85+
key: mysql-password
86+
{{- else }}
87+
key: {{ .Values.externalDatabase.existingSecret.secretKeys.password }}
88+
{{- end }}
7189
ports:
7290
- name: http
7391
containerPort: {{ .Values.service.port }}

0 commit comments

Comments
 (0)