From 8ac305778a73ccad65b94cca8c2f1b1f35698de8 Mon Sep 17 00:00:00 2001 From: Cansu Kavili Date: Wed, 15 Apr 2020 09:50:07 +0200 Subject: Add env parameters if specified in values file --- helm/wekan/templates/deployment.yaml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'helm') diff --git a/helm/wekan/templates/deployment.yaml b/helm/wekan/templates/deployment.yaml index e5bf2018..68dbf75c 100644 --- a/helm/wekan/templates/deployment.yaml +++ b/helm/wekan/templates/deployment.yaml @@ -37,6 +37,12 @@ spec: value: {{ .Values.root_url | default "https://wekan.local" | quote }} - name: MONGO_URL value: "{{ template "mongodb-replicaset.url" . }}" + {{- range $key := .Values.env }} + {{- if .value }} + - name: {{ .name }} + value: {{ .value | quote }} + {{- end }} + {{- end }} livenessProbe: httpGet: path: / -- cgit v1.2.3-1-g7c22