Skip to content

Commit

Permalink
change env section from list to map to be able to pass arguments in t…
Browse files Browse the repository at this point in the history
…erraform helm-release
  • Loading branch information
Ioan Damian committed Jan 21, 2021
1 parent 108b03f commit 0ab45f9
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
5 changes: 4 additions & 1 deletion charts/mobile-api/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- if .Values.env }}
env:
{{- toYaml .Values.env | nindent 12}}
{{ range $k, $v := .Values.env }}
- name: {{ $k | quote }}
value: {{ $v | quote }}
{{- end }}
{{- end }}
ports:
- name: http
Expand Down
2 changes: 1 addition & 1 deletion charts/mobile-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ securityContext: {}
# runAsNonRoot: true
# runAsUser: 1000

env: []
env: {}

service:
type: ClusterIP
Expand Down
5 changes: 4 additions & 1 deletion charts/routing/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- if .Values.env }}
env:
{{- toYaml .Values.env | nindent 12}}
{{ range $k, $v := .Values.env }}
- name: {{ $k | quote }}
value: {{ $v | quote }}
{{- end }}
{{- end }}
ports:
- name: http
Expand Down
2 changes: 1 addition & 1 deletion charts/routing/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ securityContext: {}
# runAsNonRoot: true
# runAsUser: 1000

env: []
env: {}

service:
type: ClusterIP
Expand Down

0 comments on commit 0ab45f9

Please sign in to comment.