From f9411fa180137106f65752d316696f4f12ad5dfe Mon Sep 17 00:00:00 2001 From: Rakshithb1 Date: Fri, 18 Oct 2024 12:35:14 +0530 Subject: [PATCH] [MOSIP-35892] Updated helm charts to add range Signed-off-by: Rakshithb1 --- helm/resident/templates/deployment.yaml | 4 +++- helm/resident/values.yaml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/helm/resident/templates/deployment.yaml b/helm/resident/templates/deployment.yaml index ec38956db69..8b2e0eed5e9 100644 --- a/helm/resident/templates/deployment.yaml +++ b/helm/resident/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/resident/values.yaml b/helm/resident/values.yaml index e482e4cce0d..375cbe1e394 100644 --- a/helm/resident/values.yaml +++ b/helm/resident/values.yaml @@ -255,7 +255,7 @@ extraEnvVarsCM: ## Secret with extra environment variables ## -extraEnvVarsSecret: +extraEnvVarsSecret: [] ## Extra volumes to add to the deployment ##