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 <rakshit.b@technoforte.co.in>
  • Loading branch information
Rakshithb1 committed Oct 15, 2024
1 parent e8afd79 commit 74961c6
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 12 deletions.
7 changes: 5 additions & 2 deletions helm/idgenerator/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/idgenerator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,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/notifier/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/notifier/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,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/pridgenerator/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/pridgenerator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,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/ridgenerator/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/ridgenerator/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 74961c6

Please sign in to comment.