Skip to content

Commit ef1ed63

Browse files
authored
Merge pull request #398: Add image pull policy to all containers
2 parents b278850 + 6093a0a commit ef1ed63

File tree

4 files changed

+5
-0
lines changed

4 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* Add securityContext support to custom st2packs images, extra_hooks jobs; Also fallback to st2actionrunner securityContext for misc init container jobs and pods. (#410) (by @cognifloyd)
66
* Stop generating the DataStore Secret (#385) and checksum labels (#391) when existing secret provided or disabled (by @bmarick)
77
* Stop generating the checksum labels for Auth Secret (#392) when existing secret provided or disabled (by @bmarick)
8+
* Use `image.pullPolicy` for all containers including init containers that use `image.utilityImage`. (#397) (by @jk464)
89

910
## v1.0.0
1011
* Bump to latest CircleCI orb versions (kubernetes@1.3.1 and helm@3.0.0 by @ZoeLeah)

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
@@ -1176,6 +1176,7 @@ spec:
11761176
{{- if $some_sensors_per_pod }}
11771177
- name: {{ $name }}-init-config
11781178
image: '{{ template "stackstorm-ha.utilityImage" $ }}'
1179+
imagePullPolicy: {{ $.Values.image.pullPolicy }}
11791180
volumeMounts:
11801181
- name: st2-sensor-config-vol
11811182
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)