Skip to content

Commit 2ea28ba

Browse files
authored
Merge branch 'master' into enterprise-cleanup
2 parents 40c06a3 + 9365247 commit 2ea28ba

File tree

7 files changed

+35
-25
lines changed

7 files changed

+35
-25
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
## In Development
44
* Updated redis constant sentinel ID which will allow other sentinel peers to update to the new given IP in case of pod failure or worker node reboots. (#191) (by @manisha-tanwar)
55
* Removed reference to st2-license pullSecrets, which was missed when removing enterprise flags (#192) (by @cognifloyd)
6+
* Add optional imagePullSecrets to ServiceAccount using `serviceAccount.pullSecret` from values.yaml. If pods do not have imagePullSecrets (eg without `image.pullSecret` in values.yaml), k8s populates them from the ServiceAccount. (#196) (by @cognifloyd)
7+
* Reformat some yaml strings so that single quotes wrap strings that include double quotes (#194) (by @cognifloyd)
68

79
## v0.60.0
810
* Switch st2 version to `v3.5dev` as a new latest development version (#187)

templates/_helpers.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ Create the name of the stackstorm-ha service account to use
137137
{{- end }}
138138
# System packs
139139
- name: st2-system-packs
140-
image: "{{ template "imageRepository" . }}/st2actionrunner:{{ .Chart.AppVersion }}"
140+
image: '{{ template "imageRepository" . }}/st2actionrunner:{{ .Chart.AppVersion }}'
141141
imagePullPolicy: {{ .Values.image.pullPolicy }}
142142
volumeMounts:
143143
- name: st2-packs-vol

templates/deployments.yaml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ spec:
4545
{{ include "init-containers-wait-for-mq" . | indent 6 }}
4646
# Sidecar container for generating .htpasswd with st2 username & password pair and sharing produced file with the main st2auth container
4747
- name: generate-htpasswd
48-
image: "{{ template "imageRepository" . }}/st2auth:{{ .Chart.AppVersion }}"
48+
image: '{{ template "imageRepository" . }}/st2auth:{{ .Chart.AppVersion }}'
4949
imagePullPolicy: {{ .Values.image.pullPolicy }}
5050
env:
5151
- name: ST2_AUTH_USERNAME
@@ -67,7 +67,7 @@ spec:
6767
- printf "${ST2_AUTH_USERNAME}:$(openssl passwd -apr1 "${ST2_AUTH_PASSWORD}")\n" > /tmp/st2/htpasswd
6868
containers:
6969
- name: st2auth
70-
image: "{{ template "imageRepository" . }}/st2auth:{{ .Chart.AppVersion }}"
70+
image: '{{ template "imageRepository" . }}/st2auth:{{ .Chart.AppVersion }}'
7171
imagePullPolicy: {{ .Values.image.pullPolicy }}
7272
ports:
7373
- containerPort: 9100
@@ -161,7 +161,7 @@ spec:
161161
{{- end }}
162162
containers:
163163
- name: st2api
164-
image: "{{ template "imageRepository" . }}/st2api:{{ .Chart.AppVersion }}"
164+
image: '{{ template "imageRepository" . }}/st2api:{{ .Chart.AppVersion }}'
165165
imagePullPolicy: {{ .Values.image.pullPolicy }}
166166
ports:
167167
- containerPort: 9101
@@ -265,7 +265,7 @@ spec:
265265
{{ include "init-containers-wait-for-mq" . | indent 6 }}
266266
containers:
267267
- name: st2stream
268-
image: "{{ template "imageRepository" . }}/st2stream:{{ .Chart.AppVersion }}"
268+
image: '{{ template "imageRepository" . }}/st2stream:{{ .Chart.AppVersion }}'
269269
imagePullPolicy: {{ .Values.image.pullPolicy }}
270270
ports:
271271
- containerPort: 9102
@@ -340,7 +340,7 @@ spec:
340340
{{- end }}
341341
containers:
342342
- name: st2web
343-
image: "{{ template "imageRepository" . }}/st2web:{{ .Chart.AppVersion }}"
343+
image: '{{ template "imageRepository" . }}/st2web:{{ .Chart.AppVersion }}'
344344
imagePullPolicy: {{ .Values.image.pullPolicy }}
345345
ports:
346346
- containerPort: 80
@@ -441,7 +441,7 @@ spec:
441441
{{ include "init-containers-wait-for-mq" . | indent 6 }}
442442
containers:
443443
- name: st2rulesengine
444-
image: "{{ template "imageRepository" . }}/st2rulesengine:{{ .Chart.AppVersion }}"
444+
image: '{{ template "imageRepository" . }}/st2rulesengine:{{ .Chart.AppVersion }}'
445445
imagePullPolicy: {{ .Values.image.pullPolicy }}
446446
# TODO: Add liveness/readiness probes (#3)
447447
#livenessProbe:
@@ -528,7 +528,7 @@ spec:
528528
{{ include "init-containers-wait-for-mq" . | indent 6 }}
529529
containers:
530530
- name: st2timersengine
531-
image: "{{ template "imageRepository" . }}/st2timersengine:{{ .Chart.AppVersion }}"
531+
image: '{{ template "imageRepository" . }}/st2timersengine:{{ .Chart.AppVersion }}'
532532
imagePullPolicy: {{ .Values.image.pullPolicy }}
533533
# TODO: Add liveness/readiness probes (#3)
534534
#livenessProbe:
@@ -607,7 +607,7 @@ spec:
607607
{{ include "init-containers-wait-for-mq" . | indent 6 }}
608608
containers:
609609
- name: st2workflowengine
610-
image: "{{ template "imageRepository" . }}/st2workflowengine:{{ .Chart.AppVersion }}"
610+
image: '{{ template "imageRepository" . }}/st2workflowengine:{{ .Chart.AppVersion }}'
611611
imagePullPolicy: {{ .Values.image.pullPolicy }}
612612
# TODO: Add liveness/readiness probes (#3)
613613
#livenessProbe:
@@ -698,7 +698,7 @@ spec:
698698
{{ include "init-containers-wait-for-mq" . | indent 6 }}
699699
containers:
700700
- name: st2scheduler
701-
image: "{{ template "imageRepository" . }}/st2scheduler:{{ .Chart.AppVersion }}"
701+
image: '{{ template "imageRepository" . }}/st2scheduler:{{ .Chart.AppVersion }}'
702702
imagePullPolicy: {{ .Values.image.pullPolicy }}
703703
# TODO: Add liveness/readiness probes (#3)
704704
#livenessProbe:
@@ -789,7 +789,7 @@ spec:
789789
{{ include "init-containers-wait-for-mq" . | indent 6 }}
790790
containers:
791791
- name: st2notifier
792-
image: "{{ template "imageRepository" . }}/st2notifier:{{ .Chart.AppVersion }}"
792+
image: '{{ template "imageRepository" . }}/st2notifier:{{ .Chart.AppVersion }}'
793793
imagePullPolicy: {{ .Values.image.pullPolicy }}
794794
# TODO: Add liveness/readiness probes (#3)
795795
#livenessProbe:
@@ -881,7 +881,7 @@ spec:
881881
{{- end }}
882882
containers:
883883
- name: st2sensorcontainer{{ template "hyphenPrefix" .name }}
884-
image: "{{ template "imageRepository" $ }}/st2sensorcontainer:{{ $.Chart.AppVersion }}"
884+
image: '{{ template "imageRepository" $ }}/st2sensorcontainer:{{ $.Chart.AppVersion }}'
885885
imagePullPolicy: {{ $.Values.image.pullPolicy }}
886886
{{- with .readinessProbe }}
887887
# Probe to check if app is running. Failure will lead to a pod restart.
@@ -1015,7 +1015,7 @@ spec:
10151015
{{- end }}
10161016
containers:
10171017
- name: st2actionrunner
1018-
image: "{{ template "imageRepository" . }}/st2actionrunner:{{ .Chart.AppVersion }}"
1018+
image: '{{ template "imageRepository" . }}/st2actionrunner:{{ .Chart.AppVersion }}'
10191019
imagePullPolicy: {{ .Values.image.pullPolicy }}
10201020
# TODO: Add liveness/readiness probes (#3)
10211021
#livenessProbe:
@@ -1128,7 +1128,7 @@ spec:
11281128
{{ include "init-containers-wait-for-mq" . | indent 6 }}
11291129
containers:
11301130
- name: st2garbagecollector
1131-
image: "{{ template "imageRepository" . }}/st2garbagecollector:{{ .Chart.AppVersion }}"
1131+
image: '{{ template "imageRepository" . }}/st2garbagecollector:{{ .Chart.AppVersion }}'
11321132
imagePullPolicy: {{ .Values.image.pullPolicy }}
11331133
# TODO: Add liveness/readiness probes (#3)
11341134
#livenessProbe:
@@ -1213,7 +1213,7 @@ spec:
12131213
{{- end }}
12141214
# Sidecar container for generating st2client config with st2 username & password pair and sharing produced file with the main container
12151215
- name: generate-st2client-config
1216-
image: "{{ template "imageRepository" . }}/st2actionrunner:{{ .Chart.AppVersion }}"
1216+
image: '{{ template "imageRepository" . }}/st2actionrunner:{{ .Chart.AppVersion }}'
12171217
imagePullPolicy: {{ .Values.image.pullPolicy }}
12181218
envFrom:
12191219
- configMapRef:
@@ -1244,7 +1244,7 @@ spec:
12441244
EOT
12451245
containers:
12461246
- name: st2client
1247-
image: "{{ template "imageRepository" . }}/st2actionrunner:{{ .Chart.AppVersion }}"
1247+
image: '{{ template "imageRepository" . }}/st2actionrunner:{{ .Chart.AppVersion }}'
12481248
imagePullPolicy: {{ .Values.image.pullPolicy }}
12491249
env:
12501250
- name: ST2CLIENT
@@ -1374,7 +1374,7 @@ spec:
13741374
{{- end }}
13751375
containers:
13761376
- name: st2chatops
1377-
image: "{{ .Values.st2chatops.image.repository | default "stackstorm" }}/{{ .Values.st2chatops.image.name | default "st2chatops" }}:{{ tpl (.Values.st2chatops.image.tag | default .Chart.AppVersion) . }}"
1377+
image: '{{ .Values.st2chatops.image.repository | default "stackstorm" }}/{{ .Values.st2chatops.image.name | default "st2chatops" }}:{{ tpl (.Values.st2chatops.image.tag | default .Chart.AppVersion) . }}'
13781378
imagePullPolicy: {{ .Values.st2chatops.image.pullPolicy | default .Values.image.pullPolicy }}
13791379
env:
13801380
- name: ST2_AUTH_USERNAME

templates/jobs.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ spec:
3737
{{- end }}
3838
containers:
3939
- name: st2-apply-rbac-definitions
40-
image: "{{ template "imageRepository" . }}/st2actionrunner:{{ .Chart.AppVersion }}"
40+
image: '{{ template "imageRepository" . }}/st2actionrunner:{{ .Chart.AppVersion }}'
4141
imagePullPolicy: {{ .Values.image.pullPolicy }}
4242
command:
4343
- st2-apply-rbac-definitions
@@ -125,7 +125,7 @@ spec:
125125
done
126126
# Sidecar container for generating st2client config with st2 username & password pair and sharing produced file with the main container
127127
- name: generate-st2client-config
128-
image: "{{ template "imageRepository" . }}/st2actionrunner:{{ .Chart.AppVersion }}"
128+
image: '{{ template "imageRepository" . }}/st2actionrunner:{{ .Chart.AppVersion }}'
129129
imagePullPolicy: {{ .Values.image.pullPolicy }}
130130
envFrom:
131131
- configMapRef:
@@ -156,7 +156,7 @@ spec:
156156
EOT
157157
containers:
158158
- name: st2-apikey-load
159-
image: "{{ template "imageRepository" . }}/st2actionrunner:{{ .Chart.AppVersion }}"
159+
image: '{{ template "imageRepository" . }}/st2actionrunner:{{ .Chart.AppVersion }}'
160160
imagePullPolicy: {{ .Values.image.pullPolicy }}
161161
command:
162162
- st2
@@ -223,7 +223,7 @@ spec:
223223
{{ include "init-containers-wait-for-db" . | indent 6 }}
224224
# Sidecar container for generating st2client config with st2 username & password pair and sharing produced file with the main container
225225
- name: generate-st2client-config
226-
image: "{{ template "imageRepository" . }}/st2actionrunner:{{ .Chart.AppVersion }}"
226+
image: '{{ template "imageRepository" . }}/st2actionrunner:{{ .Chart.AppVersion }}'
227227
imagePullPolicy: {{ .Values.image.pullPolicy }}
228228
envFrom:
229229
- configMapRef:
@@ -254,7 +254,7 @@ spec:
254254
EOT
255255
containers:
256256
- name: st2-key-load
257-
image: "{{ template "imageRepository" . }}/st2actionrunner:{{ .Chart.AppVersion }}"
257+
image: '{{ template "imageRepository" . }}/st2actionrunner:{{ .Chart.AppVersion }}'
258258
imagePullPolicy: {{ .Values.image.pullPolicy }}
259259
command:
260260
- st2
@@ -336,7 +336,7 @@ spec:
336336
{{ end }}
337337
containers:
338338
- name: st2-register-content
339-
image: "{{ template "imageRepository" . }}/st2actionrunner:{{ .Chart.AppVersion }}"
339+
image: '{{ template "imageRepository" . }}/st2actionrunner:{{ .Chart.AppVersion }}'
340340
imagePullPolicy: {{ .Values.image.pullPolicy }}
341341
command:
342342
- st2-register-content

templates/service-account.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ metadata:
1010
{{- end }}
1111
labels:
1212
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
13-
app: "{{ template "stackstorm-ha.name" . }}"
13+
app: '{{ template "stackstorm-ha.name" . }}'
1414
heritage: "{{ .Release.Service }}"
1515
release: "{{ .Release.Name }}"
16+
{{- if .Values.serviceAccount.pullSecret }}
17+
imagePullSecrets:
18+
- name: "{{ .Values.serviceAccount.pullSecret }}"
19+
{{- end }}
1620
{{- end }}

templates/tests/st2tests-pod.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ spec:
2828
# Run the actual BATS tests
2929
containers:
3030
- name: st2tests
31-
image: "{{ template "imageRepository" . }}/st2actionrunner:{{ .Chart.AppVersion }}"
31+
image: '{{ template "imageRepository" . }}/st2actionrunner:{{ .Chart.AppVersion }}'
3232
imagePullPolicy: {{ .Values.image.pullPolicy }}
3333
envFrom:
3434
- configMapRef:

values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ serviceAccount:
2929
serviceAccountAnnotations: {}
3030
# Used to override service account name
3131
serviceAccountName:
32+
# Fallback image pull secret.
33+
# If a pod does not have pull secrets, k8s will use the service account's pull secrets.
34+
# See: https://kubernetes.io/docs/reference/access-authn-authz/service-accounts-admin/#serviceaccount-admission-controller
35+
#pullSecret: "your-pull-secret"
3236

3337
##
3438
## StackStorm shared variables

0 commit comments

Comments
 (0)