diff --git a/helm/websub-consolidator/templates/deployment.yaml b/helm/websub-consolidator/templates/deployment.yaml index e083cde..1d59568 100644 --- a/helm/websub-consolidator/templates/deployment.yaml +++ b/helm/websub-consolidator/templates/deployment.yaml @@ -105,8 +105,10 @@ spec: {{- end }} {{- end }} {{- if .Values.extraEnvVarsSecret }} + {{- range .Values.extraEnvVarsSecret }} - secretRef: - name: {{ include "common.tplvalues.render" (dict "value" .Values.extraEnvVarsSecret "context" $) }} + name: {{ . }} + {{- end }} {{- end }} {{- if .Values.resources }} resources: {{- toYaml .Values.resources | nindent 12 }} diff --git a/helm/websub-consolidator/values.yaml b/helm/websub-consolidator/values.yaml index ed72389..e95d8fc 100644 --- a/helm/websub-consolidator/values.yaml +++ b/helm/websub-consolidator/values.yaml @@ -248,7 +248,7 @@ extraEnvVarsCM: ## Secret with extra environment variables ## -extraEnvVarsSecret: +extraEnvVarsSecret: [] ## Extra volumes to add to the deployment ## diff --git a/helm/websub/templates/deployment.yaml b/helm/websub/templates/deployment.yaml index 516de09..3105345 100644 --- a/helm/websub/templates/deployment.yaml +++ b/helm/websub/templates/deployment.yaml @@ -105,8 +105,10 @@ spec: {{- end }} {{- end }} {{- if .Values.extraEnvVarsSecret }} + {{- range .Values.extraEnvVarsSecret }} - secretRef: - name: {{ include "common.tplvalues.render" (dict "value" .Values.extraEnvVarsSecret "context" $) }} + name: {{ . }} + {{- end }} {{- end }} ports: - name: spring-service diff --git a/helm/websub/values.yaml b/helm/websub/values.yaml index 77f6cd4..657ba43 100644 --- a/helm/websub/values.yaml +++ b/helm/websub/values.yaml @@ -248,7 +248,7 @@ extraEnvVarsCM: ## Secret with extra environment variables ## -extraEnvVarsSecret: +extraEnvVarsSecret: [] ## Extra volumes to add to the deployment ##