diff --git a/helm/print/templates/deployment.yaml b/helm/print/templates/deployment.yaml index 49a8ea2..5d3f97c 100644 --- a/helm/print/templates/deployment.yaml +++ b/helm/print/templates/deployment.yaml @@ -104,8 +104,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/print/values.yaml b/helm/print/values.yaml index b2df5aa..c68210e 100644 --- a/helm/print/values.yaml +++ b/helm/print/values.yaml @@ -251,7 +251,7 @@ extraEnvVarsCM: ## Secret with extra environment variables ## -extraEnvVarsSecret: +extraEnvVarsSecret: [] ## Extra volumes to add to the deployment ##