File tree Expand file tree Collapse file tree 5 files changed +32
-1
lines changed Expand file tree Collapse file tree 5 files changed +32
-1
lines changed Original file line number Diff line number Diff line change 24
24
25
25
tests/
26
26
test_values.yaml
27
+ examples/
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ type: application
16
16
# This is the chart version. This version number should be incremented each time you make changes
17
17
# to the chart and its templates, including the app version.
18
18
# Versions are expected to follow Semantic Versioning (https://semver.org/)
19
- version : 0.1.0
19
+ version : 0.1.1
20
20
21
21
# This is the version number of the application being deployed. This version number should be
22
22
# incremented each time you make changes to the application. Versions are not expected to
Original file line number Diff line number Diff line change @@ -24,10 +24,16 @@ spec:
24
24
securityContext : {{ toJson .Values.securityContext }}
25
25
image : " {{ .Values.image.repository }}:{{ .Values.inventory.version }}"
26
26
imagePullPolicy : {{ .Values.image.pullPolicy }}
27
+ args :
28
+ - from-config
27
29
resources : {{ toJson .Values.resources }}
30
+ envFrom : {{ toJson .Values.envFrom }}
28
31
env :
29
32
- name : INVENTORY_CONFIG_PATH
30
33
value : /etc/inventory/config.yml
34
+ {{- range .Values.env }}
35
+ - {{ toJson . }}
36
+ {{- end }}
31
37
volumeMounts :
32
38
- name : config
33
39
mountPath : /etc/inventory
Original file line number Diff line number Diff line change @@ -76,3 +76,23 @@ tests:
76
76
content :
77
77
name : INVENTORY_CONFIG_PATH
78
78
value : /etc/inventory/config.yml
79
+
80
+ - it : should set env and envFrom
81
+ set :
82
+ envFrom :
83
+ - secretRef :
84
+ name : my-secret
85
+ env :
86
+ - name : foo
87
+ value : bar
88
+ asserts :
89
+ - contains :
90
+ path : spec.jobTemplate.spec.template.spec.containers[0].envFrom
91
+ content :
92
+ secretRef :
93
+ name : my-secret
94
+ - contains :
95
+ path : spec.jobTemplate.spec.template.spec.containers[0].env
96
+ content :
97
+ name : foo
98
+ value : bar
Original file line number Diff line number Diff line change @@ -24,6 +24,10 @@ imagePullSecrets: []
24
24
nameOverride : ' '
25
25
fullnameOverride : ' '
26
26
27
+
28
+ env : []
29
+ envFrom : []
30
+
27
31
# This section builds out the service account more information can be found here: https://kubernetes.io/docs/concepts/security/service-accounts/
28
32
serviceAccount :
29
33
# Specifies whether a service account should be created
You can’t perform that action at this time.
0 commit comments