Skip to content

Commit

Permalink
Merge pull request #398: Add image pull policy to all containers
Browse files Browse the repository at this point in the history
  • Loading branch information
cognifloyd committed Apr 11, 2024
2 parents b278850 + 6093a0a commit ef1ed63
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* 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)
* Stop generating the DataStore Secret (#385) and checksum labels (#391) when existing secret provided or disabled (by @bmarick)
* Stop generating the checksum labels for Auth Secret (#392) when existing secret provided or disabled (by @bmarick)
* Use `image.pullPolicy` for all containers including init containers that use `image.utilityImage`. (#397) (by @jk464)

## v1.0.0
* Bump to latest CircleCI orb versions ([email protected] and [email protected] by @ZoeLeah)
Expand Down
2 changes: 2 additions & 0 deletions templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ Reduce duplication of the st2.*.conf volume details
{{- $mongodb_port := (int (index .Values "mongodb" "service" "port")) }}
- name: wait-for-db
image: {{ template "stackstorm-ha.utilityImage" . }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
command:
- 'sh'
- '-c'
Expand All @@ -216,6 +217,7 @@ Reduce duplication of the st2.*.conf volume details
{{- $rabbitmq_port := (int (index .Values "rabbitmq" "service" "port")) }}
- name: wait-for-queue
image: {{ template "stackstorm-ha.utilityImage" . }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
command:
- 'sh'
- '-c'
Expand Down
1 change: 1 addition & 0 deletions templates/deployments.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1176,6 +1176,7 @@ spec:
{{- if $some_sensors_per_pod }}
- name: {{ $name }}-init-config
image: '{{ template "stackstorm-ha.utilityImage" $ }}'
imagePullPolicy: {{ $.Values.image.pullPolicy }}
volumeMounts:
- name: st2-sensor-config-vol
mountPath: /tmp/st2
Expand Down
1 change: 1 addition & 0 deletions templates/jobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ spec:
{{- include "stackstorm-ha.init-containers-wait-for-db" . | nindent 6 }}
- name: wait-for-api
image: {{ template "stackstorm-ha.utilityImage" . }}
imagePullPolicy: {{ $.Values.image.pullPolicy }}
{{- with .Values.securityContext }}
securityContext: {{- toYaml . | nindent 10 }}
{{- end }}
Expand Down

0 comments on commit ef1ed63

Please sign in to comment.