diff --git a/applications/job/templates/cronjob.yaml b/applications/job/templates/cronjob.yaml index b7fc37b9..06eb4ac5 100644 --- a/applications/job/templates/cronjob.yaml +++ b/applications/job/templates/cronjob.yaml @@ -84,11 +84,12 @@ spec: {{- if .Values.global }} {{- if .Values.global.image }} image: "{{ .Values.global.image.repository }}:{{ .Values.global.image.tag }}" + imagePullPolicy: {{ if eq .Values.global.image.tag "latest" }}"Always"{{ else }}"IfNotPresent"{{ end }} {{- end }} {{- else }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" + imagePullPolicy: {{ if eq .Values.image.tag "latest" }}"Always"{{ else }}"IfNotPresent"{{ end }} {{- end }} - imagePullPolicy: {{ .Values.image.pullPolicy }} {{- if .Values.global }} {{- if .Values.global.image }} {{- if and .Values.container.command (not (eq .Values.global.image.repository "public.ecr.aws/o1j4x7p4/hello-porter")) }} diff --git a/applications/web/templates/deployment.yaml b/applications/web/templates/deployment.yaml index 2be6d109..089d165b 100644 --- a/applications/web/templates/deployment.yaml +++ b/applications/web/templates/deployment.yaml @@ -112,11 +112,12 @@ spec: {{- if .Values.global }} {{- if .Values.global.image }} image: "{{ .Values.global.image.repository }}:{{ .Values.global.image.tag }}" + imagePullPolicy: {{ if eq .Values.global.image.tag "latest" }}"Always"{{ else }}"IfNotPresent"{{ end }} {{- end }} {{- else }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" + imagePullPolicy: {{ if eq .Values.image.tag "latest" }}"Always"{{ else }}"IfNotPresent"{{ end }} {{- end }} - imagePullPolicy: {{ .Values.image.pullPolicy }} {{- if .Values.global }} {{- if .Values.global.image }} {{- if and .Values.container.command (not (eq .Values.global.image.repository "public.ecr.aws/o1j4x7p4/hello-porter")) }} diff --git a/applications/worker/templates/deployment.yaml b/applications/worker/templates/deployment.yaml index af6a34a6..f8c3e689 100644 --- a/applications/worker/templates/deployment.yaml +++ b/applications/worker/templates/deployment.yaml @@ -89,11 +89,12 @@ spec: {{- if .Values.global }} {{- if .Values.global.image }} image: "{{ .Values.global.image.repository }}:{{ .Values.global.image.tag }}" + imagePullPolicy: {{ if eq .Values.global.image.tag "latest" }}"Always"{{ else }}"IfNotPresent"{{ end }} {{- end }} {{- else }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" + imagePullPolicy: {{ if eq .Values.image.tag "latest" }}"Always"{{ else }}"IfNotPresent"{{ end }} {{- end }} - imagePullPolicy: {{ .Values.image.pullPolicy }} {{- if .Values.global }} {{- if .Values.global.image }} {{- if and .Values.container.command (not (eq .Values.global.image.repository "public.ecr.aws/o1j4x7p4/hello-porter")) }}