Skip to content

Commit f15f424

Browse files
authored
Merge pull request #1 from wintermute-core/env-vars
Env variables passing to job
2 parents afecd23 + d725e03 commit f15f424

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

helm/templates/job.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ spec:
5555
args:
5656
{{- toYaml . | nindent 12 }}
5757
{{- end }}
58+
# passing env variables
59+
{{- with .Values.env }}
60+
env:
61+
{{- toYaml . | nindent 12 }}
62+
{{- end }}
5863
volumeMounts:
5964
- name: work-files
6065
mountPath: "{{.Values.image.workVolumePath}}"

helm/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ image:
2121
# additional volumes to mount
2222
additionalVolumes: []
2323

24+
# environment variables
25+
#env:
26+
# - name: "MONGO_URI"
27+
# value: "mongodb://"
28+
env: []
2429

2530
timestamp: "0"
2631

0 commit comments

Comments
 (0)