Ver código fonte

Merge pull request #3382 from ThoreKr/helm-secretenv

Helm: Introduce secretEnv for secret value provisioning
Lauri Ojansivu 4 anos atrás
pai
commit
f576d2f356

+ 1 - 1
helm/wekan/Chart.yaml

@@ -1,5 +1,5 @@
 name: wekan
 name: wekan
-version: 1.0.1
+version: 1.0.2
 apiVersion: v1
 apiVersion: v1
 description: Open Source kanban
 description: Open Source kanban
 home: https://wekan.github.io/
 home: https://wekan.github.io/

+ 6 - 0
helm/wekan/templates/deployment.yaml

@@ -43,6 +43,12 @@ spec:
               value: {{ .value | quote }}
               value: {{ .value | quote }}
           {{- end }}
           {{- end }}
           {{- end }}
           {{- end }}
+          {{- range $key := .Values.secretEnv }}
+          {{- if .value }}
+            - name: {{ .name }}
+              value: {{ .value | quote }}
+          {{- end }}
+          {{- end }}
           livenessProbe:
           livenessProbe:
             httpGet:
             httpGet:
               path: /
               path: /

+ 8 - 0
helm/wekan/values.yaml

@@ -28,6 +28,14 @@ env:
   - name: ""
   - name: ""
     value: ""
     value: ""
 
 
+## Specify additional secret environmental variables for the
+## Deployment. These can e.g. be provided by a Secret and allow
+## to store passwords separately
+##
+secretEnv:
+  - name: ""
+    value: ""
+
 service:
 service:
   type: NodePort
   type: NodePort
   port: 8080
   port: 8080