From d4c15029144de13b51d70c5c09afd0f86914fd55 Mon Sep 17 00:00:00 2001 From: Rakshithb1 Date: Wed, 16 Oct 2024 17:54:04 +0530 Subject: [PATCH] [MOSIP-35892] Updated helm charts to add range Signed-off-by: Rakshithb1 --- helm/print/templates/deployment.yaml | 4 +++- helm/print/values.yaml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) 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 ##