Skip to content

Commit

Permalink
change podtemplate
Browse files Browse the repository at this point in the history
  • Loading branch information
mhaxp committed Nov 28, 2024
1 parent e249b22 commit 9b3a864
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions charts/application/templates/_podTemplate.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand Down

0 comments on commit 9b3a864

Please sign in to comment.