feat: Add support for initContainers

This commit is contained in:
Kaiwalya Joshi
2022-08-03 12:21:36 -07:00
parent 90db4b5a44
commit 6e9d39ac72
6 changed files with 42 additions and 7 deletions

View File

@@ -173,4 +173,13 @@ Inject extra environment vars in the format key:value, if populated
{{- printf "false" -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{/* check if any InitContainers exist for Volumes */}}
{{- define "volume.initContainers_exists" -}}
{{- if or (not (empty .Values.volume.dir_idx )) (not (empty .Values.volume.initContainers )) -}}
{{- printf "true" -}}
{{- else -}}
{{- printf "false" -}}
{{- end -}}
{{- end -}}