Skip to content

Commit eb12a53

Browse files
authored
Merge pull request #391: Remove data store key labels when not generating the secret (from bmarick)
2 parents b9e3b8c + 00ea9a5 commit eb12a53

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Development
44
* Fix syntax with ensure-packs-volumes-are-writable job (#403) (by @skiedude)
55
* Add securityContext support to custom st2packs images, extra_hooks jobs; Also fallback to st2actionrunner securityContext for misc init container jobs and pods. (#410) (by @cognifloyd)
6+
* Stop generating the DataStore Secret (#385) and checksum labels (#391) when existing secret provided or disabled (by @bmarick)
67

78
## v1.0.0
89
* Bump to latest CircleCI orb versions (kubernetes@1.3.1 and helm@3.0.0 by @ZoeLeah)

templates/deployments.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)