Skip to content

Commit

Permalink
Merge pull request #391: Remove data store key labels when not genera…
Browse files Browse the repository at this point in the history
…ting the secret (from bmarick)
  • Loading branch information
cognifloyd committed Apr 11, 2024
2 parents b9e3b8c + 00ea9a5 commit eb12a53
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Development
* Fix syntax with ensure-packs-volumes-are-writable job (#403) (by @skiedude)
* 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)
* Stop generating the DataStore Secret (#385) and checksum labels (#391) when existing secret provided or disabled (by @bmarick)

## v1.0.0
* Bump to latest CircleCI orb versions (kubernetes@1.3.1 and helm@3.0.0 by @ZoeLeah)
Expand Down
14 changes: 14 additions & 0 deletions templates/deployments.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,9 @@ spec:
labels: {{- include "stackstorm-ha.labels" (list $ "st2api") | nindent 8 }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/configmaps_st2-conf.yaml") . | sha256sum }}
{{- if and (ne "disable" (default "" .Values.st2.datastore_crypto_key)) (not .Values.st2.existingDatastoreSecret) }}
checksum/datastore-key: {{ include (print $.Template.BasePath "/secrets_datastore_crypto_key.yaml") . | sha256sum }}
{{- end }}
{{- if .Values.st2api.postStartScript }}
checksum/post-start-script: {{ .Values.st2api.postStartScript | sha256sum }}
{{- end }}
Expand Down Expand Up @@ -548,7 +550,9 @@ spec:
labels: {{- include "stackstorm-ha.labels" (list $ "st2rulesengine") | nindent 8 }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/configmaps_st2-conf.yaml") . | sha256sum }}
{{- if and (ne "disable" (default "" .Values.st2.datastore_crypto_key)) (not .Values.st2.existingDatastoreSecret) }}
checksum/datastore-key: {{ include (print $.Template.BasePath "/secrets_datastore_crypto_key.yaml") . | sha256sum }}
{{- end }}
{{- if .Values.st2rulesengine.postStartScript }}
checksum/post-start-script: {{ .Values.st2rulesengine.postStartScript | sha256sum }}
{{- end }}
Expand Down Expand Up @@ -769,7 +773,9 @@ spec:
labels: {{- include "stackstorm-ha.labels" (list $ "st2workflowengine") | nindent 8 }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/configmaps_st2-conf.yaml") . | sha256sum }}
{{- if and (ne "disable" (default "" .Values.st2.datastore_crypto_key)) (not .Values.st2.existingDatastoreSecret) }}
checksum/datastore-key: {{ include (print $.Template.BasePath "/secrets_datastore_crypto_key.yaml") . | sha256sum }}
{{- end }}
{{- if .Values.st2workflowengine.postStartScript }}
checksum/post-start-script: {{ .Values.st2workflowengine.postStartScript | sha256sum }}
{{- end }}
Expand Down Expand Up @@ -886,7 +892,9 @@ spec:
labels: {{- include "stackstorm-ha.labels" (list $ "st2scheduler") | nindent 8 }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/configmaps_st2-conf.yaml") . | sha256sum }}
{{- if and (ne "disable" (default "" .Values.st2.datastore_crypto_key)) (not .Values.st2.existingDatastoreSecret) }}
checksum/datastore-key: {{ include (print $.Template.BasePath "/secrets_datastore_crypto_key.yaml") . | sha256sum }}
{{- end }}
{{- if .Values.st2scheduler.postStartScript }}
checksum/post-start-script: {{ .Values.st2scheduler.postStartScript | sha256sum }}
{{- end }}
Expand Down Expand Up @@ -1137,7 +1145,9 @@ spec:
annotations:
checksum/config: {{ include (print $.Template.BasePath "/configmaps_st2-conf.yaml") $ | sha256sum }}
checksum/packs: {{ include (print $.Template.BasePath "/configmaps_packs.yaml") $ | sha256sum }}
{{- if and (ne "disable" (default "" $.Values.st2.datastore_crypto_key)) (not $.Values.st2.existingDatastoreSecret) }}
checksum/datastore-key: {{ include (print $.Template.BasePath "/secrets_datastore_crypto_key.yaml") $ | sha256sum }}
{{- end }}
{{- if $.Values.st2sensorcontainer.postStartScript }}
checksum/post-start-script: {{ $.Values.st2sensorcontainer.postStartScript | sha256sum }}
{{- end }}
Expand Down Expand Up @@ -1318,7 +1328,9 @@ spec:
annotations:
checksum/config: {{ include (print $.Template.BasePath "/configmaps_st2-conf.yaml") . | sha256sum }}
checksum/ssh: {{ include (print $.Template.BasePath "/secrets_ssh.yaml") . | sha256sum }}
{{- if and (ne "disable" (default "" .Values.st2.datastore_crypto_key)) (not .Values.st2.existingDatastoreSecret) }}
checksum/datastore-key: {{ include (print $.Template.BasePath "/secrets_datastore_crypto_key.yaml") . | sha256sum }}
{{- end }}
{{- if .Values.st2actionrunner.postStartScript }}
checksum/post-start-script: {{ .Values.st2actionrunner.postStartScript | sha256sum }}
{{- end }}
Expand Down Expand Up @@ -1574,7 +1586,9 @@ spec:
checksum/packs: {{ include (print $.Template.BasePath "/configmaps_packs.yaml") . | sha256sum }}
checksum/auth: {{ include (print $.Template.BasePath "/secrets_st2auth.yaml") . | sha256sum }}
checksum/ssh: {{ include (print $.Template.BasePath "/secrets_ssh.yaml") . | sha256sum }}
{{- if and (ne "disable" (default "" .Values.st2.datastore_crypto_key)) (not .Values.st2.existingDatastoreSecret) }}
checksum/datastore-key: {{ include (print $.Template.BasePath "/secrets_datastore_crypto_key.yaml") . | sha256sum }}
{{- end }}
{{- if .Values.st2.overrides }}
checksum/overrides: {{ include (print $.Template.BasePath "/configmaps_overrides.yaml") . | sha256sum }}
{{- end }}
Expand Down

0 comments on commit eb12a53

Please sign in to comment.