File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -182,6 +182,9 @@ spec:
182182 {{- end }}
183183 {{- end }}
184184 {{- end }}
185+ {{- with $.Values.admintools.postInitContainers }}
186+ {{- toYaml . | nindent 8 }}
187+ {{- end }}
185188 containers :
186189 - name : done
187190 image : " {{ $.Values.admintools.image.repository }}:{{ $.Values.admintools.image.tag }}"
Original file line number Diff line number Diff line change @@ -19,6 +19,15 @@ tests:
1919 - equal :
2020 path : spec.template.spec.initContainers[0].name
2121 value : my-init-container
22+ - it : includes postInit containers
23+ set :
24+ admintools :
25+ postInitContainers :
26+ - name : my-post-init-container
27+ asserts :
28+ - equal :
29+ path : spec.template.spec.initContainers[-1].name
30+ value : my-post-init-container
2231 - it : includes additional volumes
2332 set :
2433 admintools :
Original file line number Diff line number Diff line change @@ -371,6 +371,7 @@ admintools:
371371 additionalEnvSecretName : " "
372372 # for sidecar containers, add containers here with restartPolicy: Always
373373 additionalInitContainers : []
374+ postInitContainers : []
374375 resources : {}
375376 containerSecurityContext : {}
376377 securityContext : {}
You can’t perform that action at this time.
0 commit comments