Skip to content

Commit 742d1ba

Browse files
authored
Merge branch 'master' into generate-crypto-key
2 parents b6ddc52 + 87295be commit 742d1ba

File tree

3 files changed

+55
-0
lines changed

3 files changed

+55
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
* Template `~/.st2/config`. This allows customizing the settings used by the `st2client` and jobs pods for using the st2 apis. (#262) (by @cognifloyd)
1616
* Fix indent for lifecycle postStart hook of `st2web` pod. (#268) (by @cognifloyd)
1717
* Advanced Feature: Allow `st2web` to serve HTTPS when the ssl certs are provided via `st2web.extra_volumes`. To enable this, add `ST2WEB_HTTPS: "1"` to `st2web.env` in your values file. (#264) (by @cognifloyd)
18+
* Custom annotations now apply to deployments and jobs, not just pods. (#270) (by @cognifloyd)
1819
* Auto-generate `datastore_crypto_key` on install if not provided. This way all HA installs will have a datastore_crypto_key configured. (#266) (by @cognifloyd)
1920

2021
## v0.70.0

templates/deployments.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ metadata:
2020
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
2121
release: {{ .Release.Name }}
2222
heritage: {{ .Release.Service }}
23+
{{- if .Values.st2auth.annotations }}
24+
annotations: {{- toYaml .Values.st2auth.annotations | nindent 4 }}
25+
{{- end }}
2326
spec:
2427
selector:
2528
matchLabels:
@@ -141,6 +144,9 @@ metadata:
141144
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
142145
release: {{ .Release.Name }}
143146
heritage: {{ .Release.Service }}
147+
{{- if .Values.st2api.annotations }}
148+
annotations: {{- toYaml .Values.st2api.annotations | nindent 4 }}
149+
{{- end }}
144150
spec:
145151
selector:
146152
matchLabels:
@@ -264,6 +270,9 @@ metadata:
264270
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
265271
release: {{ .Release.Name }}
266272
heritage: {{ .Release.Service }}
273+
{{- if .Values.st2stream.annotations }}
274+
annotations: {{- toYaml .Values.st2stream.annotations | nindent 4 }}
275+
{{- end }}
267276
spec:
268277
selector:
269278
matchLabels:
@@ -363,6 +372,9 @@ metadata:
363372
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
364373
release: {{ .Release.Name }}
365374
heritage: {{ .Release.Service }}
375+
{{- if .Values.st2web.annotations }}
376+
annotations: {{- toYaml .Values.st2web.annotations | nindent 4 }}
377+
{{- end }}
366378
spec:
367379
selector:
368380
matchLabels:
@@ -497,6 +509,9 @@ metadata:
497509
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
498510
release: {{ .Release.Name }}
499511
heritage: {{ .Release.Service }}
512+
{{- if .Values.st2rulesengine.annotations }}
513+
annotations: {{- toYaml .Values.st2rulesengine.annotations | nindent 4 }}
514+
{{- end }}
500515
spec:
501516
selector:
502517
matchLabels:
@@ -604,6 +619,9 @@ metadata:
604619
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
605620
release: {{ .Release.Name }}
606621
heritage: {{ .Release.Service }}
622+
{{- if .Values.st2timersengine.annotations }}
623+
annotations: {{- toYaml .Values.st2timersengine.annotations | nindent 4 }}
624+
{{- end }}
607625
spec:
608626
selector:
609627
matchLabels:
@@ -702,6 +720,9 @@ metadata:
702720
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
703721
release: {{ .Release.Name }}
704722
heritage: {{ .Release.Service }}
723+
{{- if .Values.st2workflowengine.annotations }}
724+
annotations: {{- toYaml .Values.st2workflowengine.annotations | nindent 4 }}
725+
{{- end }}
705726
spec:
706727
selector:
707728
matchLabels:
@@ -817,6 +838,9 @@ metadata:
817838
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
818839
release: {{ .Release.Name }}
819840
heritage: {{ .Release.Service }}
841+
{{- if .Values.st2scheduler.annotations }}
842+
annotations: {{- toYaml .Values.st2scheduler.annotations | nindent 4 }}
843+
{{- end }}
820844
spec:
821845
selector:
822846
matchLabels:
@@ -923,6 +947,9 @@ metadata:
923947
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
924948
release: {{ .Release.Name }}
925949
heritage: {{ .Release.Service }}
950+
{{- if .Values.st2notifier.annotations }}
951+
annotations: {{- toYaml .Values.st2notifier.annotations | nindent 4 }}
952+
{{- end }}
926953
spec:
927954
selector:
928955
matchLabels:
@@ -1029,6 +1056,9 @@ metadata:
10291056
chart: {{ $.Chart.Name }}-{{ $.Chart.Version }}
10301057
release: {{ $.Release.Name }}
10311058
heritage: {{ $.Release.Service }}
1059+
{{- if $sensor.annotations }}
1060+
annotations: {{- toYaml $sensor.annotations | nindent 4 }}
1061+
{{- end }}
10321062
spec:
10331063
selector:
10341064
matchLabels:
@@ -1183,6 +1213,9 @@ metadata:
11831213
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
11841214
release: {{ .Release.Name }}
11851215
heritage: {{ .Release.Service }}
1216+
{{- if .Values.st2actionrunner.annotations }}
1217+
annotations: {{- toYaml .Values.st2actionrunner.annotations | nindent 4 }}
1218+
{{- end }}
11861219
spec:
11871220
selector:
11881221
matchLabels:
@@ -1328,6 +1361,9 @@ metadata:
13281361
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
13291362
release: {{ .Release.Name }}
13301363
heritage: {{ .Release.Service }}
1364+
{{- if .Values.st2garbagecollector.annotations }}
1365+
annotations: {{- toYaml .Values.st2garbagecollector.annotations | nindent 4 }}
1366+
{{- end }}
13311367
spec:
13321368
selector:
13331369
matchLabels:
@@ -1425,6 +1461,9 @@ metadata:
14251461
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
14261462
release: {{ .Release.Name }}
14271463
heritage: {{ .Release.Service }}
1464+
{{- if .Values.st2client.annotations }}
1465+
annotations: {{- toYaml .Values.st2client.annotations | nindent 4 }}
1466+
{{- end }}
14281467
spec:
14291468
selector:
14301469
matchLabels:
@@ -1604,6 +1643,9 @@ metadata:
16041643
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
16051644
release: {{ .Release.Name }}
16061645
heritage: {{ .Release.Service }}
1646+
{{- if .Values.st2chatops.annotations }}
1647+
annotations: {{- toYaml .Values.st2chatops.annotations | nindent 4 }}
1648+
{{- end }}
16071649
spec:
16081650
selector:
16091651
matchLabels:

templates/jobs.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ metadata:
1515
helm.sh/hook: post-install, post-upgrade, post-rollback
1616
helm.sh/hook-delete-policy: before-hook-creation
1717
helm.sh/hook-weight: "5"
18+
{{- if .Values.jobs.annotations }}
19+
{{- toYaml .Values.jobs.annotations | nindent 4 }}
20+
{{- end }}
1821
spec:
1922
template:
2023
metadata:
@@ -114,6 +117,9 @@ metadata:
114117
helm.sh/hook: post-install, post-upgrade, post-rollback
115118
helm.sh/hook-delete-policy: before-hook-creation
116119
helm.sh/hook-weight: "6"
120+
{{- if .Values.jobs.annotations }}
121+
{{- toYaml .Values.jobs.annotations | nindent 4 }}
122+
{{- end }}
117123
spec:
118124
template:
119125
metadata:
@@ -241,6 +247,9 @@ metadata:
241247
helm.sh/hook: post-install, post-upgrade, post-rollback
242248
helm.sh/hook-delete-policy: before-hook-creation
243249
helm.sh/hook-weight: "6"
250+
{{- if .Values.jobs.annotations }}
251+
{{- toYaml .Values.jobs.annotations | nindent 4 }}
252+
{{- end }}
244253
spec:
245254
template:
246255
metadata:
@@ -362,6 +371,9 @@ metadata:
362371
helm.sh/hook: post-install, post-upgrade, post-rollback
363372
helm.sh/hook-delete-policy: before-hook-creation
364373
helm.sh/hook-weight: "7"
374+
{{- if .Values.jobs.annotations }}
375+
{{- toYaml .Values.jobs.annotations | nindent 4 }}
376+
{{- end }}
365377
spec:
366378
template:
367379
metadata:

0 commit comments

Comments
 (0)