Skip to content

Commit c8916ca

Browse files
committed
add checksum/post-start-script annotations
1 parent c65e635 commit c8916ca

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

templates/deployments.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ spec:
3535
annotations:
3636
checksum/config: {{ include (print $.Template.BasePath "/configmaps_st2-conf.yaml") . | sha256sum }}
3737
checksum/auth: {{ include (print $.Template.BasePath "/secrets_st2auth.yaml") . | sha256sum }}
38+
{{- if .Values.st2auth.postStartScript }}
39+
checksum/post-start-script: {{ .Values.st2auth.postStartScript | sha256sum }}
40+
{{- end }}
3841
{{- if .Values.st2auth.annotations }}
3942
{{- toYaml .Values.st2auth.annotations | nindent 8 }}
4043
{{- end }}
@@ -158,6 +161,9 @@ spec:
158161
annotations:
159162
checksum/config: {{ include (print $.Template.BasePath "/configmaps_st2-conf.yaml") . | sha256sum }}
160163
checksum/datastore-key: {{ include (print $.Template.BasePath "/secrets_datastore_crypto_key.yaml") . | sha256sum }}
164+
{{- if .Values.st2api.postStartScript }}
165+
checksum/post-start-script: {{ .Values.st2api.postStartScript | sha256sum }}
166+
{{- end }}
161167
{{- if .Values.st2api.annotations }}
162168
{{- toYaml .Values.st2api.annotations | nindent 8 }}
163169
{{- end }}
@@ -281,6 +287,9 @@ spec:
281287
heritage: {{ .Release.Service }}
282288
annotations:
283289
checksum/config: {{ include (print $.Template.BasePath "/configmaps_st2-conf.yaml") . | sha256sum }}
290+
{{- if .Values.st2stream.postStartScript }}
291+
checksum/post-start-script: {{ .Values.st2stream.postStartScript | sha256sum }}
292+
{{- end }}
284293
{{- if .Values.st2stream.annotations }}
285294
{{- toYaml .Values.st2stream.annotations | nindent 8 }}
286295
{{- end }}
@@ -372,6 +381,9 @@ spec:
372381
heritage: {{ .Release.Service }}
373382
annotations:
374383
checksum/config: {{ include (print $.Template.BasePath "/configmaps_st2web.yaml") . | sha256sum }}
384+
{{- if .Values.st2web.postStartScript }}
385+
checksum/post-start-script: {{ .Values.st2web.postStartScript | sha256sum }}
386+
{{- end }}
375387
{{- if .Values.st2web.annotations }}
376388
{{- toYaml .Values.st2web.annotations | nindent 8 }}
377389
{{- end }}
@@ -494,6 +506,9 @@ spec:
494506
heritage: {{ .Release.Service }}
495507
annotations:
496508
checksum/config: {{ include (print $.Template.BasePath "/configmaps_st2-conf.yaml") . | sha256sum }}
509+
{{- if .Values.st2rulesengine.postStartScript }}
510+
checksum/post-start-script: {{ .Values.st2rulesengine.postStartScript | sha256sum }}
511+
{{- end }}
497512
{{- if .Values.st2rulesengine.annotations }}
498513
{{- toYaml .Values.st2rulesengine.annotations | nindent 8 }}
499514
{{- end }}
@@ -594,6 +609,9 @@ spec:
594609
heritage: {{ .Release.Service }}
595610
annotations:
596611
checksum/config: {{ include (print $.Template.BasePath "/configmaps_st2-conf.yaml") . | sha256sum }}
612+
{{- if .Values.st2timersengine.postStartScript }}
613+
checksum/post-start-script: {{ .Values.st2timersengine.postStartScript | sha256sum }}
614+
{{- end }}
597615
{{- if .Values.st2timersengine.annotations }}
598616
{{- toYaml .Values.st2timersengine.annotations | nindent 8 }}
599617
{{- end }}
@@ -686,6 +704,9 @@ spec:
686704
annotations:
687705
checksum/config: {{ include (print $.Template.BasePath "/configmaps_st2-conf.yaml") . | sha256sum }}
688706
checksum/datastore-key: {{ include (print $.Template.BasePath "/secrets_datastore_crypto_key.yaml") . | sha256sum }}
707+
{{- if .Values.st2workflowengine.postStartScript }}
708+
checksum/post-start-script: {{ .Values.st2workflowengine.postStartScript | sha256sum }}
709+
{{- end }}
689710
{{- if .Values.st2workflowengine.annotations }}
690711
{{- toYaml .Values.st2workflowengine.annotations | nindent 8 }}
691712
{{- end }}
@@ -790,6 +811,9 @@ spec:
790811
annotations:
791812
checksum/config: {{ include (print $.Template.BasePath "/configmaps_st2-conf.yaml") . | sha256sum }}
792813
checksum/datastore-key: {{ include (print $.Template.BasePath "/secrets_datastore_crypto_key.yaml") . | sha256sum }}
814+
{{- if .Values.st2scheduler.postStartScript }}
815+
checksum/post-start-script: {{ .Values.st2scheduler.postStartScript | sha256sum }}
816+
{{- end }}
793817
{{- if .Values.st2scheduler.annotations }}
794818
{{- toYaml .Values.st2scheduler.annotations | nindent 8 }}
795819
{{- end }}
@@ -894,6 +918,9 @@ spec:
894918
heritage: {{ .Release.Service }}
895919
annotations:
896920
checksum/config: {{ include (print $.Template.BasePath "/configmaps_st2-conf.yaml") . | sha256sum }}
921+
{{- if .Values.st2notifier.postStartScript }}
922+
checksum/post-start-script: {{ .Values.st2notifier.postStartScript | sha256sum }}
923+
{{- end }}
897924
{{- if .Values.st2notifier.annotations }}
898925
{{- toYaml .Values.st2notifier.annotations | nindent 8 }}
899926
{{- end }}
@@ -990,6 +1017,9 @@ spec:
9901017
checksum/config: {{ include (print $.Template.BasePath "/configmaps_st2-conf.yaml") $ | sha256sum }}
9911018
checksum/packs: {{ include (print $.Template.BasePath "/configmaps_packs.yaml") $ | sha256sum }}
9921019
checksum/datastore-key: {{ include (print $.Template.BasePath "/secrets_datastore_crypto_key.yaml") $ | sha256sum }}
1020+
{{- if $.Values.st2sensorcontainer.postStartScript }}
1021+
checksum/post-start-script: {{ $.Values.st2sensorcontainer.postStartScript | sha256sum }}
1022+
{{- end }}
9931023
{{- if .annotations }}
9941024
{{- toYaml .annotations | nindent 8 }}
9951025
{{- end }}
@@ -1130,6 +1160,9 @@ spec:
11301160
checksum/config: {{ include (print $.Template.BasePath "/configmaps_st2-conf.yaml") . | sha256sum }}
11311161
checksum/ssh: {{ include (print $.Template.BasePath "/secrets_ssh.yaml") . | sha256sum }}
11321162
checksum/datastore-key: {{ include (print $.Template.BasePath "/secrets_datastore_crypto_key.yaml") . | sha256sum }}
1163+
{{- if .Values.st2actionrunner.postStartScript }}
1164+
checksum/post-start-script: {{ .Values.st2actionrunner.postStartScript | sha256sum }}
1165+
{{- end }}
11331166
{{- if .Values.st2actionrunner.annotations }}
11341167
{{- toYaml .Values.st2actionrunner.annotations | nindent 8 }}
11351168
{{- end }}
@@ -1261,6 +1294,9 @@ spec:
12611294
heritage: {{ .Release.Service }}
12621295
annotations:
12631296
checksum/config: {{ include (print $.Template.BasePath "/configmaps_st2-conf.yaml") . | sha256sum }}
1297+
{{- if .Values.st2garbagecollector.postStartScript }}
1298+
checksum/post-start-script: {{ .Values.st2garbagecollector.postStartScript | sha256sum }}
1299+
{{- end }}
12641300
{{- if .Values.st2garbagecollector.annotations }}
12651301
{{- toYaml .Values.st2garbagecollector.annotations | nindent 8 }}
12661302
{{- end }}
@@ -1355,6 +1391,9 @@ spec:
13551391
checksum/auth: {{ include (print $.Template.BasePath "/secrets_st2auth.yaml") . | sha256sum }}
13561392
checksum/ssh: {{ include (print $.Template.BasePath "/secrets_ssh.yaml") . | sha256sum }}
13571393
checksum/datastore-key: {{ include (print $.Template.BasePath "/secrets_datastore_crypto_key.yaml") . | sha256sum }}
1394+
{{- if .Values.st2client.postStartScript }}
1395+
checksum/post-start-script: {{ .Values.st2client.postStartScript | sha256sum }}
1396+
{{- end }}
13581397
{{- if .Values.st2client.annotations }}
13591398
{{- toYaml .Values.st2client.annotations | nindent 8 }}
13601399
{{- end }}
@@ -1528,6 +1567,9 @@ spec:
15281567
heritage: {{ .Release.Service }}
15291568
annotations:
15301569
checksum/chatops: {{ include (print $.Template.BasePath "/secrets_st2chatops.yaml") . | sha256sum }}
1570+
{{- if .Values.st2chatops.postStartScript }}
1571+
checksum/post-start-script: {{ .Values.st2chatops.postStartScript | sha256sum }}
1572+
{{- end }}
15311573
{{- if .Values.st2chatops.annotations }}
15321574
{{- toYaml .Values.st2chatops.annotations | nindent 8 }}
15331575
{{- end }}

0 commit comments

Comments
 (0)