Skip to content

Commit

Permalink
fix: update image pull policy logic in deployment helpers template
Browse files Browse the repository at this point in the history
On-behalf-of: @SAP angel.kafazov@sap.com
Signed-off-by: Angel Kafazov <akafazov@cst-bg.net>
  • Loading branch information
akafazov committed Nov 25, 2024
1 parent b03aaaa commit 557ba35
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions charts/common/templates/_deploymentHelpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,10 @@ automountServiceAccountToken: {{ not (eq (.Values.security).mountServiceAccountT
{{- end }}

{{- define "common.imagePullPolicy" -}}
{{- if .Values.imagePullPolicy -}}
{{ .Values.imagePullPolicy }}
{{- else if and .Values.global (.Values.global.imagePullPolicy) -}}
{{- if and .Values.global (.Values.global.imagePullPolicy) -}}
{{ .Values.global.imagePullPolicy }}
{{- else if .Values.imagePullPolicy -}}
{{ .Values.imagePullPolicy }}
{{- else -}}
Always
{{- end -}}
Expand Down

0 comments on commit 557ba35

Please sign in to comment.