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 15, 2024
1 parent 0c8ec18 commit cd8569c
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 12 deletions.
7 changes: 5 additions & 2 deletions helm/admin-hotlist/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ spec:
- name: JDK_JAVA_OPTIONS
value: {{ .Values.additionalResources.javaOpts }}
{{- if .Values.extraEnvVars }}
{{- include "common.tplvalues.render" (dict "value" .Values.extraEnvVars "context" $) | nindent 12 }}
{{- range .Values.extraEnvVars }}
{{- end }}
{{- end }}
envFrom:
{{- if .Values.extraEnvVarsCM }}
Expand All @@ -104,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/admin-hotlist/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ extraEnvVarsCM:

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

## Extra volumes to add to the deployment
##
Expand Down
7 changes: 5 additions & 2 deletions helm/admin-service/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ spec:
- name: JDK_JAVA_OPTIONS
value: {{ .Values.additionalResources.javaOpts }}
{{- if .Values.extraEnvVars }}
{{- include "common.tplvalues.render" (dict "value" .Values.extraEnvVars "context" $) | nindent 12 }}
{{- range .Values.extraEnvVars }}
{{- end }}
{{- end }}
envFrom:
{{- if .Values.extraEnvVarsCM }}
Expand All @@ -104,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/admin-service/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ extraEnvVarsCM:

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

## Extra volumes to add to the deployment
##
Expand Down
7 changes: 5 additions & 2 deletions helm/masterdata/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ spec:
- name: JDK_JAVA_OPTIONS
value: {{ .Values.additionalResources.javaOpts }}
{{- if .Values.extraEnvVars }}
{{- include "common.tplvalues.render" (dict "value" .Values.extraEnvVars "context" $) | nindent 12 }}
{{- range .Values.extraEnvVars }}
{{- end }}
{{- end }}
envFrom:
{{- if .Values.extraEnvVarsCM }}
Expand All @@ -105,8 +106,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/masterdata/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ extraEnvVarsCM:

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

## Extra volumes to add to the deployment
##
Expand Down
7 changes: 5 additions & 2 deletions helm/syncdata/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ spec:
- name: JDK_JAVA_OPTIONS
value: {{ .Values.additionalResources.javaOpts }}
{{- if .Values.extraEnvVars }}
{{- include "common.tplvalues.render" (dict "value" .Values.extraEnvVars "context" $) | nindent 12 }}
{{- range .Values.extraEnvVars }}
{{- end }}
{{- end }}
envFrom:
{{- if .Values.extraEnvVarsCM }}
Expand All @@ -105,8 +106,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/syncdata/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ extraEnvVarsCM:

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

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

0 comments on commit cd8569c

Please sign in to comment.