chore(argo-workflows): Enable to set different imagePullPolicy for mainContainer and executor (#1570)
Signed-off-by: yu-croco <yu.croco@gmail.com>
This commit is contained in:
parent
9d69923c93
commit
3a431395d0
4 changed files with 10 additions and 7 deletions
|
|
@ -27,7 +27,7 @@ data:
|
|||
{{- end }}
|
||||
{{- if or .Values.mainContainer.resources .Values.mainContainer.env .Values.mainContainer.securityContext}}
|
||||
mainContainer:
|
||||
imagePullPolicy: {{ .Values.images.pullPolicy }}
|
||||
imagePullPolicy: {{ default (.Values.images.pullPolicy) .Values.mainContainer.imagePullPolicy }}
|
||||
{{- with .Values.mainContainer.resources }}
|
||||
resources: {{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
|
|
@ -40,7 +40,7 @@ data:
|
|||
{{- end }}
|
||||
{{- if or .Values.executor.resources .Values.executor.env .Values.executor.securityContext}}
|
||||
executor:
|
||||
imagePullPolicy: {{ .Values.images.pullPolicy }}
|
||||
imagePullPolicy: {{ default (.Values.images.pullPolicy) .Values.executor.image.pullPolicy }}
|
||||
{{- with .Values.executor.resources }}
|
||||
resources: {{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue