From df37e1912a8744467b1db76a0e2535da59b73bc3 Mon Sep 17 00:00:00 2001 From: Rakshithb1 Date: Wed, 16 Oct 2024 15:59:44 +0530 Subject: [PATCH] [MOSIP-35892] Updated helm charts to add range Signed-off-by: Rakshithb1 --- helm/prereg-ui/templates/deployment.yaml | 4 +++- helm/prereg-ui/values.yaml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/helm/prereg-ui/templates/deployment.yaml b/helm/prereg-ui/templates/deployment.yaml index 1b59a823..a41c0a92 100644 --- a/helm/prereg-ui/templates/deployment.yaml +++ b/helm/prereg-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: conf-file diff --git a/helm/prereg-ui/values.yaml b/helm/prereg-ui/values.yaml index c3c98281..5baa2166 100644 --- a/helm/prereg-ui/values.yaml +++ b/helm/prereg-ui/values.yaml @@ -251,7 +251,7 @@ extraEnvVarsCM: ## Secret with extra environment variables ## -extraEnvVarsSecret: +extraEnvVarsSecret: [] ## Extra volumes to add to the deployment ##