Skip to content

Commit 8014b31

Browse files
committed
Add image pull policy to all containers
1 parent 44aa43a commit 8014b31

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

templates/_helpers.tpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ Reduce duplication of the st2.*.conf volume details
196196
{{- $mongodb_port := (int (index .Values "mongodb" "service" "port")) }}
197197
- name: wait-for-db
198198
image: {{ template "stackstorm-ha.utilityImage" . }}
199+
imagePullPolicy: {{ .Values.image.pullPolicy }}
199200
command:
200201
- 'sh'
201202
- '-c'
@@ -216,6 +217,7 @@ Reduce duplication of the st2.*.conf volume details
216217
{{- $rabbitmq_port := (int (index .Values "rabbitmq" "service" "port")) }}
217218
- name: wait-for-queue
218219
image: {{ template "stackstorm-ha.utilityImage" . }}
220+
imagePullPolicy: {{ .Values.image.pullPolicy }}
219221
command:
220222
- 'sh'
221223
- '-c'

templates/deployments.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1164,6 +1164,7 @@ spec:
11641164
{{- if $some_sensors_per_pod }}
11651165
- name: {{ $name }}-init-config
11661166
image: '{{ template "stackstorm-ha.utilityImage" $ }}'
1167+
imagePullPolicy: {{ $.Values.image.pullPolicy }}
11671168
volumeMounts:
11681169
- name: st2-sensor-config-vol
11691170
mountPath: /tmp/st2

templates/jobs.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ spec:
135135
{{- include "stackstorm-ha.init-containers-wait-for-db" . | nindent 6 }}
136136
- name: wait-for-api
137137
image: {{ template "stackstorm-ha.utilityImage" . }}
138+
imagePullPolicy: {{ $.Values.image.pullPolicy }}
138139
{{- with .Values.securityContext }}
139140
securityContext: {{- toYaml . | nindent 10 }}
140141
{{- end }}

0 commit comments

Comments
 (0)