|
35 | 35 | annotations: |
36 | 36 | checksum/config: {{ include (print $.Template.BasePath "/configmaps_st2-conf.yaml") . | sha256sum }} |
37 | 37 | checksum/auth: {{ include (print $.Template.BasePath "/secrets_st2auth.yaml") . | sha256sum }} |
38 | | -{{ include "custom-annotations" .Values.st2auth | indent 8 }} |
| 38 | + {{- if .Values.st2auth.annotations }} |
| 39 | +{{ toYaml .Values.st2auth.annotations | indent 8 }} |
| 40 | + {{- end }} |
39 | 41 | spec: |
40 | 42 | imagePullSecrets: |
41 | 43 | {{- if .Values.image.pullSecret }} |
@@ -146,7 +148,9 @@ spec: |
146 | 148 | annotations: |
147 | 149 | checksum/config: {{ include (print $.Template.BasePath "/configmaps_st2-conf.yaml") . | sha256sum }} |
148 | 150 | checksum/datastore-key: {{ include (print $.Template.BasePath "/secrets_datastore_crypto_key.yaml") . | sha256sum }} |
149 | | -{{ include "custom-annotations" .Values.st2api | indent 8 }} |
| 151 | + {{- if .Values.st2api.annotations }} |
| 152 | +{{ toYaml .Values.st2api.annotations | indent 8 }} |
| 153 | + {{- end }} |
150 | 154 | spec: |
151 | 155 | imagePullSecrets: |
152 | 156 | {{- if .Values.image.pullSecret }} |
@@ -257,7 +261,9 @@ spec: |
257 | 261 | heritage: {{ .Release.Service }} |
258 | 262 | annotations: |
259 | 263 | checksum/config: {{ include (print $.Template.BasePath "/configmaps_st2-conf.yaml") . | sha256sum }} |
260 | | -{{ include "custom-annotations" .Values.st2stream | indent 8 }} |
| 264 | + {{- if .Values.st2stream.annotations }} |
| 265 | +{{ toYaml .Values.st2stream.annotations | indent 8 }} |
| 266 | + {{- end }} |
261 | 267 | spec: |
262 | 268 | imagePullSecrets: |
263 | 269 | {{- if .Values.image.pullSecret }} |
@@ -336,7 +342,9 @@ spec: |
336 | 342 | heritage: {{ .Release.Service }} |
337 | 343 | annotations: |
338 | 344 | checksum/config: {{ include (print $.Template.BasePath "/configmaps_st2web.yaml") . | sha256sum }} |
339 | | -{{ include "custom-annotations" .Values.st2web | indent 8 }} |
| 345 | + {{- if .Values.st2web.annotations }} |
| 346 | +{{ toYaml .Values.st2web.annotations | indent 8 }} |
| 347 | + {{- end }} |
340 | 348 | spec: |
341 | 349 | imagePullSecrets: |
342 | 350 | {{- if .Values.image.pullSecret }} |
@@ -435,7 +443,9 @@ spec: |
435 | 443 | heritage: {{ .Release.Service }} |
436 | 444 | annotations: |
437 | 445 | checksum/config: {{ include (print $.Template.BasePath "/configmaps_st2-conf.yaml") . | sha256sum }} |
438 | | -{{ include "custom-annotations" .Values.st2rulesengine | indent 8 }} |
| 446 | + {{- if .Values.st2rulesengine.annotations }} |
| 447 | +{{ toYaml .Values.st2rulesengine.annotations | indent 8 }} |
| 448 | + {{- end }} |
439 | 449 | spec: |
440 | 450 | imagePullSecrets: |
441 | 451 | {{- if .Values.image.pullSecret }} |
@@ -523,7 +533,9 @@ spec: |
523 | 533 | heritage: {{ .Release.Service }} |
524 | 534 | annotations: |
525 | 535 | checksum/config: {{ include (print $.Template.BasePath "/configmaps_st2-conf.yaml") . | sha256sum }} |
526 | | -{{ include "custom-annotations" .Values.st2timersengine | indent 8 }} |
| 536 | + {{- if .Values.st2timersengine.annotations }} |
| 537 | +{{ toYaml .Values.st2timersengine.annotations | indent 8 }} |
| 538 | + {{- end }} |
527 | 539 | spec: |
528 | 540 | imagePullSecrets: |
529 | 541 | {{- if .Values.image.pullSecret }} |
@@ -603,7 +615,9 @@ spec: |
603 | 615 | annotations: |
604 | 616 | checksum/config: {{ include (print $.Template.BasePath "/configmaps_st2-conf.yaml") . | sha256sum }} |
605 | 617 | checksum/datastore-key: {{ include (print $.Template.BasePath "/secrets_datastore_crypto_key.yaml") . | sha256sum }} |
606 | | -{{ include "custom-annotations" .Values.st2workflowengine | indent 8 }} |
| 618 | + {{- if .Values.st2workflowengine.annotations }} |
| 619 | +{{ toYaml .Values.st2workflowengine.annotations | indent 8 }} |
| 620 | + {{- end }} |
607 | 621 | spec: |
608 | 622 | imagePullSecrets: |
609 | 623 | {{- if .Values.image.pullSecret }} |
@@ -695,7 +709,9 @@ spec: |
695 | 709 | annotations: |
696 | 710 | checksum/config: {{ include (print $.Template.BasePath "/configmaps_st2-conf.yaml") . | sha256sum }} |
697 | 711 | checksum/datastore-key: {{ include (print $.Template.BasePath "/secrets_datastore_crypto_key.yaml") . | sha256sum }} |
698 | | -{{ include "custom-annotations" .Values.st2scheduler | indent 8 }} |
| 712 | + {{- if .Values.st2scheduler.annotations }} |
| 713 | +{{ toYaml .Values.st2scheduler.annotations | indent 8 }} |
| 714 | + {{- end }} |
699 | 715 | spec: |
700 | 716 | imagePullSecrets: |
701 | 717 | {{- if .Values.image.pullSecret }} |
@@ -787,7 +803,9 @@ spec: |
787 | 803 | heritage: {{ .Release.Service }} |
788 | 804 | annotations: |
789 | 805 | checksum/config: {{ include (print $.Template.BasePath "/configmaps_st2-conf.yaml") . | sha256sum }} |
790 | | -{{ include "custom-annotations" .Values.st2notifier | indent 8 }} |
| 806 | + {{- if .Values.st2notifier.annotations }} |
| 807 | +{{ toYaml .Values.st2notifier.annotations | indent 8 }} |
| 808 | + {{- end }} |
791 | 809 | spec: |
792 | 810 | imagePullSecrets: |
793 | 811 | {{- if .Values.image.pullSecret }} |
@@ -871,7 +889,9 @@ spec: |
871 | 889 | checksum/config: {{ include (print $.Template.BasePath "/configmaps_st2-conf.yaml") $ | sha256sum }} |
872 | 890 | checksum/packs: {{ include (print $.Template.BasePath "/configmaps_packs.yaml") $ | sha256sum }} |
873 | 891 | checksum/datastore-key: {{ include (print $.Template.BasePath "/secrets_datastore_crypto_key.yaml") $ | sha256sum }} |
874 | | -{{ include "custom-annotations" . | indent 8 }} |
| 892 | + {{- if .annotations }} |
| 893 | +{{ toYaml .annotations | indent 8 }} |
| 894 | + {{- end }} |
875 | 895 | spec: |
876 | 896 | imagePullSecrets: |
877 | 897 | {{- if $.Values.image.pullSecret }} |
@@ -999,7 +1019,9 @@ spec: |
999 | 1019 | checksum/config: {{ include (print $.Template.BasePath "/configmaps_st2-conf.yaml") . | sha256sum }} |
1000 | 1020 | checksum/ssh: {{ include (print $.Template.BasePath "/secrets_ssh.yaml") . | sha256sum }} |
1001 | 1021 | checksum/datastore-key: {{ include (print $.Template.BasePath "/secrets_datastore_crypto_key.yaml") . | sha256sum }} |
1002 | | -{{ include "custom-annotations" .Values.st2actionrunner | indent 8 }} |
| 1022 | + {{- if .Values.st2actionrunner.annotations }} |
| 1023 | +{{ toYaml .Values.st2actionrunner.annotations | indent 8 }} |
| 1024 | + {{- end }} |
1003 | 1025 | spec: |
1004 | 1026 | {{- if .Values.st2actionrunner.hostAliases }} |
1005 | 1027 | hostAliases: |
@@ -1123,7 +1145,9 @@ spec: |
1123 | 1145 | heritage: {{ .Release.Service }} |
1124 | 1146 | annotations: |
1125 | 1147 | checksum/config: {{ include (print $.Template.BasePath "/configmaps_st2-conf.yaml") . | sha256sum }} |
1126 | | -{{ include "custom-annotations" .Values.st2garbagecollector | indent 8 }} |
| 1148 | + {{- if .Values.st2garbagecollector.annotations }} |
| 1149 | +{{ toYaml .Values.st2garbagecollector.annotations | indent 8 }} |
| 1150 | + {{- end }} |
1127 | 1151 | spec: |
1128 | 1152 | imagePullSecrets: |
1129 | 1153 | {{- if .Values.image.pullSecret }} |
@@ -1205,7 +1229,9 @@ spec: |
1205 | 1229 | checksum/auth: {{ include (print $.Template.BasePath "/secrets_st2auth.yaml") . | sha256sum }} |
1206 | 1230 | checksum/ssh: {{ include (print $.Template.BasePath "/secrets_ssh.yaml") . | sha256sum }} |
1207 | 1231 | checksum/datastore-key: {{ include (print $.Template.BasePath "/secrets_datastore_crypto_key.yaml") . | sha256sum }} |
1208 | | -{{ include "custom-annotations" .Values.st2client | indent 8 }} |
| 1232 | + {{- if .Values.st2client.annotations }} |
| 1233 | +{{ toYaml .Values.st2client.annotations | indent 8 }} |
| 1234 | + {{- end }} |
1209 | 1235 | spec: |
1210 | 1236 | imagePullSecrets: |
1211 | 1237 | {{- if .Values.st2.packs.images }} |
@@ -1374,7 +1400,9 @@ spec: |
1374 | 1400 | heritage: {{ .Release.Service }} |
1375 | 1401 | annotations: |
1376 | 1402 | checksum/chatops: {{ include (print $.Template.BasePath "/secrets_st2chatops.yaml") . | sha256sum }} |
1377 | | -{{ include "custom-annotations" .Values.st2chatops | indent 8 }} |
| 1403 | + {{- if .Values.st2chatops.annotations }} |
| 1404 | +{{ toYaml .Values.st2chatops.annotations | indent 8 }} |
| 1405 | + {{- end }} |
1378 | 1406 | spec: |
1379 | 1407 | {{- if .Values.image.pullSecret }} |
1380 | 1408 | imagePullSecrets: |
|
0 commit comments