Browse Source

Add env parameters if specified in values file

Cansu Kavili 5 years ago
parent
commit
8ac305778a
1 changed files with 6 additions and 0 deletions
  1. 6 0
      helm/wekan/templates/deployment.yaml

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

@@ -37,6 +37,12 @@ spec:
               value: {{ .Values.root_url | default "https://wekan.local" | quote }}
               value: {{ .Values.root_url | default "https://wekan.local" | quote }}
             - name: MONGO_URL
             - name: MONGO_URL
               value: "{{ template "mongodb-replicaset.url" . }}"
               value: "{{ template "mongodb-replicaset.url" . }}"
+          {{- range $key := .Values.env }}
+          {{- if .value }}
+            - name: {{ .name }}
+              value: {{ .value | quote }}
+          {{- end }}
+          {{- end }}
           livenessProbe:
           livenessProbe:
             httpGet:
             httpGet:
               path: /
               path: /