From 421bc139386110ca70913cef14e3d000e42f5a0f Mon Sep 17 00:00:00 2001 From: Rakshithb1 Date: Tue, 15 Oct 2024 18:47:51 +0530 Subject: [PATCH 1/2] [MOSIP-35892] Updated helm charts to add range Signed-off-by: Rakshithb1 --- helm/ida-auth/templates/deployment.yaml | 4 +++- helm/ida-internal/templates/deployment.yaml | 4 +++- helm/ida-internal/values.yaml | 2 +- helm/ida-otp/templates/deployment.yaml | 4 +++- helm/ida-otp/values.yaml | 2 +- 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/helm/ida-auth/templates/deployment.yaml b/helm/ida-auth/templates/deployment.yaml index dd244d5fdc1..78b4f09d501 100644 --- a/helm/ida-auth/templates/deployment.yaml +++ b/helm/ida-auth/templates/deployment.yaml @@ -117,8 +117,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/ida-internal/templates/deployment.yaml b/helm/ida-internal/templates/deployment.yaml index 465d68012eb..e9b9b4ad4f2 100644 --- a/helm/ida-internal/templates/deployment.yaml +++ b/helm/ida-internal/templates/deployment.yaml @@ -117,8 +117,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/ida-internal/values.yaml b/helm/ida-internal/values.yaml index f1e5a5a1725..e0bc1158bac 100644 --- a/helm/ida-internal/values.yaml +++ b/helm/ida-internal/values.yaml @@ -252,7 +252,7 @@ extraEnvVarsCM: ## Secret with extra environment variables ## -extraEnvVarsSecret: +extraEnvVarsSecret: [] ## Extra volumes to add to the deployment ## diff --git a/helm/ida-otp/templates/deployment.yaml b/helm/ida-otp/templates/deployment.yaml index 7016a127aea..d016cb4bb08 100644 --- a/helm/ida-otp/templates/deployment.yaml +++ b/helm/ida-otp/templates/deployment.yaml @@ -117,8 +117,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/ida-otp/values.yaml b/helm/ida-otp/values.yaml index 0208fc6d359..e9c83140e6d 100644 --- a/helm/ida-otp/values.yaml +++ b/helm/ida-otp/values.yaml @@ -252,7 +252,7 @@ extraEnvVarsCM: ## Secret with extra environment variables ## -extraEnvVarsSecret: +extraEnvVarsSecret: [] ## Extra volumes to add to the deployment ## From 71e14f9fa7af908f8de2efa48fa85dfc2b699c4d Mon Sep 17 00:00:00 2001 From: Rakshithb1 Date: Mon, 21 Oct 2024 14:03:35 +0530 Subject: [PATCH 2/2] [MOSIP-35892] Updated helm charts to add range Signed-off-by: Rakshithb1 --- helm/ida-auth/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm/ida-auth/values.yaml b/helm/ida-auth/values.yaml index 8e808c5f4ba..1264991e594 100644 --- a/helm/ida-auth/values.yaml +++ b/helm/ida-auth/values.yaml @@ -252,7 +252,7 @@ extraEnvVarsCM: ## Secret with extra environment variables ## -extraEnvVarsSecret: +extraEnvVarsSecret: [] ## Extra volumes to add to the deployment ##