From e8170010486452718d17807e61d6b7d0e623c6e1 Mon Sep 17 00:00:00 2001 From: Rakshithb1 Date: Fri, 18 Oct 2024 12:10:46 +0530 Subject: [PATCH] [MOSIP-35892] Updated helm charts to add range Signed-off-by: Rakshithb1 --- helm/resident-ui/templates/deployment.yaml | 4 +++- helm/resident-ui/values.yaml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/helm/resident-ui/templates/deployment.yaml b/helm/resident-ui/templates/deployment.yaml index 9855b858..54f0d0d2 100644 --- a/helm/resident-ui/templates/deployment.yaml +++ b/helm/resident-ui/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 }} volumeMounts: - name: ui-config diff --git a/helm/resident-ui/values.yaml b/helm/resident-ui/values.yaml index 198bad06..f8e0dc72 100644 --- a/helm/resident-ui/values.yaml +++ b/helm/resident-ui/values.yaml @@ -248,7 +248,7 @@ extraEnvVarsCM: ## Secret with extra environment variables ## -extraEnvVarsSecret: +extraEnvVarsSecret: [] ## Extra volumes to add to the deployment ##