Skip to content

Commit 0f75af9

Browse files
authored
Merge pull request #1623 from porter-dev/rudimk/web-image-policy
Ensuring images are always pulled for legacy apps
2 parents a4bf0c6 + 7ac14c1 commit 0f75af9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

applications/web/templates/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ spec:
136136
{{- end }}
137137
{{- else }}
138138
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
139-
imagePullPolicy: {{ if eq .Values.image.tag "latest" }}"Always"{{ else }}"IfNotPresent"{{ end }}
139+
imagePullPolicy: {{ if eq .Values.image.tag "latest" }}"Always"{{ else if eq .Values.image.pullPolicy "Always" }}"Always"{{ else }}"IfNotPresent"{{ end }}
140140
{{- end }}
141141
{{- if .Values.global }}
142142
{{- if .Values.global.image }}

0 commit comments

Comments
 (0)