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 committed Oct 18, 2024
1 parent 169c3a3 commit 27ea5e0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion helm/websub-consolidator/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 }}
{{- if .Values.resources }}
resources: {{- toYaml .Values.resources | nindent 12 }}
Expand Down
2 changes: 1 addition & 1 deletion helm/websub-consolidator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ extraEnvVarsCM:

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

## Extra volumes to add to the deployment
##
Expand Down
4 changes: 3 additions & 1 deletion helm/websub/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:
- name: spring-service
Expand Down
2 changes: 1 addition & 1 deletion helm/websub/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ extraEnvVarsCM:

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

## Extra volumes to add to the deployment
##
Expand Down

0 comments on commit 27ea5e0

Please sign in to comment.