diff --git a/charts/application/templates/_podTemplate.tpl b/charts/application/templates/_podTemplate.tpl index c4f831e..8de2c54 100644 --- a/charts/application/templates/_podTemplate.tpl +++ b/charts/application/templates/_podTemplate.tpl @@ -121,10 +121,12 @@ spec: image: "{{ .image.repository }}:{{ .image.tag }}" {{- end }} imagePullPolicy: {{ or $s.image.pullPolicy $.Values.sidecarDefaults.image.pullPolicy }} - command: {{ if not $s.command }}[]{{ end }} + {{ if $s.command }} + command: {{- with (first $s.command ) }} - {{ . | quote }} {{- end }} + {{- end }} args: {{ if not $s.args }}[]{{ end }} {{- range $s.args }} - {{ . | quote }} @@ -240,8 +242,9 @@ spec: image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" {{- end }} imagePullPolicy: {{ .Values.image.pullPolicy }} - command: {{ if not .Values.container.command }}[]{{ end }} - {{- with ( first .Values.container.command ) }} + {{ if .Values.container.command }} + command: + {{- with (first .Values.container.command ) }} - {{ . | quote }} {{- end }} args: {{ if not .Values.container.args }}[]{{ end }}