@@ -164,7 +164,9 @@ spec:
164164 labels : {{- include "stackstorm-ha.labels" (list $ "st2api") | nindent 8 }}
165165 annotations :
166166 checksum/config : {{ include (print $.Template.BasePath "/configmaps_st2-conf.yaml") . | sha256sum }}
167+ {{- if and (ne "disable" (default "" .Values.st2.datastore_crypto_key)) (not .Values.st2.existingDatastoreSecret) }}
167168 checksum/datastore-key : {{ include (print $.Template.BasePath "/secrets_datastore_crypto_key.yaml") . | sha256sum }}
169+ {{- end }}
168170 {{- if .Values.st2api.postStartScript }}
169171 checksum/post-start-script : {{ .Values.st2api.postStartScript | sha256sum }}
170172 {{- end }}
@@ -548,7 +550,9 @@ spec:
548550 labels : {{- include "stackstorm-ha.labels" (list $ "st2rulesengine") | nindent 8 }}
549551 annotations :
550552 checksum/config : {{ include (print $.Template.BasePath "/configmaps_st2-conf.yaml") . | sha256sum }}
553+ {{- if and (ne "disable" (default "" .Values.st2.datastore_crypto_key)) (not .Values.st2.existingDatastoreSecret) }}
551554 checksum/datastore-key : {{ include (print $.Template.BasePath "/secrets_datastore_crypto_key.yaml") . | sha256sum }}
555+ {{- end }}
552556 {{- if .Values.st2rulesengine.postStartScript }}
553557 checksum/post-start-script : {{ .Values.st2rulesengine.postStartScript | sha256sum }}
554558 {{- end }}
@@ -769,7 +773,9 @@ spec:
769773 labels : {{- include "stackstorm-ha.labels" (list $ "st2workflowengine") | nindent 8 }}
770774 annotations :
771775 checksum/config : {{ include (print $.Template.BasePath "/configmaps_st2-conf.yaml") . | sha256sum }}
776+ {{- if and (ne "disable" (default "" .Values.st2.datastore_crypto_key)) (not .Values.st2.existingDatastoreSecret) }}
772777 checksum/datastore-key : {{ include (print $.Template.BasePath "/secrets_datastore_crypto_key.yaml") . | sha256sum }}
778+ {{- end }}
773779 {{- if .Values.st2workflowengine.postStartScript }}
774780 checksum/post-start-script : {{ .Values.st2workflowengine.postStartScript | sha256sum }}
775781 {{- end }}
@@ -886,7 +892,9 @@ spec:
886892 labels : {{- include "stackstorm-ha.labels" (list $ "st2scheduler") | nindent 8 }}
887893 annotations :
888894 checksum/config : {{ include (print $.Template.BasePath "/configmaps_st2-conf.yaml") . | sha256sum }}
895+ {{- if and (ne "disable" (default "" .Values.st2.datastore_crypto_key)) (not .Values.st2.existingDatastoreSecret) }}
889896 checksum/datastore-key : {{ include (print $.Template.BasePath "/secrets_datastore_crypto_key.yaml") . | sha256sum }}
897+ {{- end }}
890898 {{- if .Values.st2scheduler.postStartScript }}
891899 checksum/post-start-script : {{ .Values.st2scheduler.postStartScript | sha256sum }}
892900 {{- end }}
@@ -1137,7 +1145,9 @@ spec:
11371145 annotations :
11381146 checksum/config : {{ include (print $.Template.BasePath "/configmaps_st2-conf.yaml") $ | sha256sum }}
11391147 checksum/packs : {{ include (print $.Template.BasePath "/configmaps_packs.yaml") $ | sha256sum }}
1148+ {{- if and (ne "disable" (default "" $.Values.st2.datastore_crypto_key)) (not $.Values.st2.existingDatastoreSecret) }}
11401149 checksum/datastore-key : {{ include (print $.Template.BasePath "/secrets_datastore_crypto_key.yaml") $ | sha256sum }}
1150+ {{- end }}
11411151 {{- if $.Values.st2sensorcontainer.postStartScript }}
11421152 checksum/post-start-script : {{ $.Values.st2sensorcontainer.postStartScript | sha256sum }}
11431153 {{- end }}
@@ -1318,7 +1328,9 @@ spec:
13181328 annotations :
13191329 checksum/config : {{ include (print $.Template.BasePath "/configmaps_st2-conf.yaml") . | sha256sum }}
13201330 checksum/ssh : {{ include (print $.Template.BasePath "/secrets_ssh.yaml") . | sha256sum }}
1331+ {{- if and (ne "disable" (default "" .Values.st2.datastore_crypto_key)) (not .Values.st2.existingDatastoreSecret) }}
13211332 checksum/datastore-key : {{ include (print $.Template.BasePath "/secrets_datastore_crypto_key.yaml") . | sha256sum }}
1333+ {{- end }}
13221334 {{- if .Values.st2actionrunner.postStartScript }}
13231335 checksum/post-start-script : {{ .Values.st2actionrunner.postStartScript | sha256sum }}
13241336 {{- end }}
@@ -1574,7 +1586,9 @@ spec:
15741586 checksum/packs : {{ include (print $.Template.BasePath "/configmaps_packs.yaml") . | sha256sum }}
15751587 checksum/auth : {{ include (print $.Template.BasePath "/secrets_st2auth.yaml") . | sha256sum }}
15761588 checksum/ssh : {{ include (print $.Template.BasePath "/secrets_ssh.yaml") . | sha256sum }}
1589+ {{- if and (ne "disable" (default "" .Values.st2.datastore_crypto_key)) (not .Values.st2.existingDatastoreSecret) }}
15771590 checksum/datastore-key : {{ include (print $.Template.BasePath "/secrets_datastore_crypto_key.yaml") . | sha256sum }}
1591+ {{- end }}
15781592 {{- if .Values.st2.overrides }}
15791593 checksum/overrides : {{ include (print $.Template.BasePath "/configmaps_overrides.yaml") . | sha256sum }}
15801594 {{- end }}
0 commit comments