From 03f565bf952a777e720b675e6ea4119d68b7c8bc Mon Sep 17 00:00:00 2001 From: Thore Date: Thu, 3 Dec 2020 05:34:52 +0100 Subject: [PATCH] Introduce secretEnv for secret value provisioning --- helm/wekan/Chart.yaml | 2 +- helm/wekan/templates/deployment.yaml | 6 ++++++ helm/wekan/values.yaml | 8 ++++++++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/helm/wekan/Chart.yaml b/helm/wekan/Chart.yaml index 69963f17b..355f5bf24 100644 --- a/helm/wekan/Chart.yaml +++ b/helm/wekan/Chart.yaml @@ -1,5 +1,5 @@ name: wekan -version: 1.0.1 +version: 1.0.2 apiVersion: v1 description: Open Source kanban home: https://wekan.github.io/ diff --git a/helm/wekan/templates/deployment.yaml b/helm/wekan/templates/deployment.yaml index 75c02a2db..89b75aa15 100644 --- a/helm/wekan/templates/deployment.yaml +++ b/helm/wekan/templates/deployment.yaml @@ -43,6 +43,12 @@ spec: value: {{ .value | quote }} {{- end }} {{- end }} + {{- range $key := .Values.secretEnv }} + {{- if .value }} + - name: {{ .name }} + value: {{ .value | quote }} + {{- end }} + {{- end }} livenessProbe: httpGet: path: / diff --git a/helm/wekan/values.yaml b/helm/wekan/values.yaml index 91a06b2ae..24e5413cb 100644 --- a/helm/wekan/values.yaml +++ b/helm/wekan/values.yaml @@ -28,6 +28,14 @@ env: - name: "" 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: type: NodePort port: 8080