Skip to content

Commit

Permalink
[MOSIP-35892] Updated helm charts to add range
Browse files Browse the repository at this point in the history
Signed-off-by: Rakshithb1 <[email protected]>
  • Loading branch information
Rakshithb1 authored and zesu22 committed Nov 25, 2024
1 parent b701cc2 commit 0e11918
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
4 changes: 3 additions & 1 deletion helm/mock-identity-system/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

ports:
Expand Down
2 changes: 1 addition & 1 deletion helm/mock-identity-system/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ extraEnvVarsCM:

## Secret with extra environment variables
##
extraEnvVarsSecret:
extraEnvVarsSecret: []

## Extra volumes to add to the deployment
##
Expand Down
20 changes: 11 additions & 9 deletions helm/mock-relying-party-ui/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,15 +132,17 @@ spec:
{{- end }}
envFrom:
{{- if .Values.extraEnvVarsCM }}
{{- range .Values.extraEnvVarsCM }}
- configMapRef:
name: {{ . }}
{{- end }}
{{- end }}
{{- if .Values.extraEnvVarsSecret }}
- secretRef:
name: {{ include "common.tplvalues.render" (dict "value" .Values.extraEnvVarsSecret "context" $) }}
{{- end }}
{{- range .Values.extraEnvVarsCM }}
- configMapRef:
name: {{ . }}
{{- end }}
{{- end }}
{{- if .Values.extraEnvVarsSecret }}
{{- range .Values.extraEnvVarsSecret }}
- secretRef:
name: {{ . }}
{{- end }}
{{- end }}
volumeMounts:
- name: nginx-conf
mountPath: /etc/nginx/nginx.conf
Expand Down

0 comments on commit 0e11918

Please sign in to comment.