From be591a91594363de6c2b1916a8711cdfde9ed40d Mon Sep 17 00:00:00 2001 From: Ritesh Pradhan Date: Tue, 22 Nov 2022 20:52:57 -0500 Subject: [PATCH] feat: extraEnvVars to support secret values --- charts/vouch/Chart.yaml | 2 +- charts/vouch/templates/deployment.yaml | 5 ++--- charts/vouch/values.yaml | 6 ++++++ 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/charts/vouch/Chart.yaml b/charts/vouch/Chart.yaml index b8a1caf..ba7c03a 100644 --- a/charts/vouch/Chart.yaml +++ b/charts/vouch/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 type: application appVersion: "0.36" -version: 3.1.0 +version: 3.1.1 name: vouch description: An SSO and OAuth login solution for nginx using the auth_request module. icon: https://avatars0.githubusercontent.com/u/45102943?s=200&v=4 diff --git a/charts/vouch/templates/deployment.yaml b/charts/vouch/templates/deployment.yaml index cb1f2b9..8267fd0 100644 --- a/charts/vouch/templates/deployment.yaml +++ b/charts/vouch/templates/deployment.yaml @@ -62,9 +62,8 @@ spec: env: - name: VOUCH_PORT value: {{ .Values.config.vouch.port | quote }} - {{- range .Values.extraEnvVars }} - - name: {{ .name }} - value: {{ .value | quote }} + {{- if .Values.extraEnvVars }} + {{- toYaml .Values.extraEnvVars | nindent 12 }} {{- end }} ports: - name: http diff --git a/charts/vouch/values.yaml b/charts/vouch/values.yaml index 886acc1..541213c 100644 --- a/charts/vouch/values.yaml +++ b/charts/vouch/values.yaml @@ -130,4 +130,10 @@ existingSecretName: "" # extraEnvVars: # - name: HTTPS_PROXY # value: "https://example.com" +# - name: SECRET_VALUE +# valueFrom: +# secretKeyRef: +# name: my-secrets +# key: password + extraEnvVars: []