Skip to content

Commit

Permalink
Ability to pass environment variables to Moon pod containers (fixes #94)
Browse files Browse the repository at this point in the history
  • Loading branch information
vania-pooh committed Jan 28, 2022
1 parent da4fbbd commit 689964c
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions moon/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,10 @@ spec:
{{- end }}
{{- if .Values.moon.env }}
env:
{{- range $key, $value := .Values.moon.env }}
- name: {{ $key }}
value: {{ $value | quote }}
{{- end }}
{{- range $key, $value := .Values.moon.env }}
- name: {{ $key }}
value: {{ $value | quote }}
{{- end }}
{{- end }}
{{- if .Values.moon.enabled.resources }}
{{- if .Values.moon.resources }}
Expand Down Expand Up @@ -177,10 +177,10 @@ spec:
{{- if .Values.moon.api }}
{{- if .Values.moon.api.env }}
env:
{{- range $key, $value := .Values.moon.api.env }}
- name: {{ $key }}
value: {{ $value | quote }}
{{- end }}
{{- range $key, $value := .Values.moon.api.env }}
- name: {{ $key }}
value: {{ $value | quote }}
{{- end }}
{{- end }}
{{- if .Values.moon.api.resources }}
resources:
Expand Down Expand Up @@ -227,10 +227,10 @@ spec:
{{- if .Values.moon.ui }}
{{- if .Values.moon.ui.env }}
env:
{{- range $key, $value := .Values.moon.ui.env }}
- name: {{ $key }}
value: {{ $value | quote }}
{{- end }}
{{- range $key, $value := .Values.moon.ui.env }}
- name: {{ $key }}
value: {{ $value | quote }}
{{- end }}
{{- end }}
{{- if .Values.moon.ui.resources }}
resources:
Expand Down

0 comments on commit 689964c

Please sign in to comment.