Skip to content

Commit b278850

Browse files
authored
Stop generating the checksum labels for Auth Secret when existing secret provided (#392)
1 parent eb12a53 commit b278850

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
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)
66
* Stop generating the DataStore Secret (#385) and checksum labels (#391) when existing secret provided or disabled (by @bmarick)
7+
* Stop generating the checksum labels for Auth Secret (#392) when existing secret provided or disabled (by @bmarick)
78

89
## v1.0.0
910
* Bump to latest CircleCI orb versions ([email protected] and [email protected] by @ZoeLeah)

templates/deployments.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ spec:
2828
labels: {{- include "stackstorm-ha.labels" (list $ "st2auth") | nindent 8 }}
2929
annotations:
3030
checksum/config: {{ include (print $.Template.BasePath "/configmaps_st2-conf.yaml") . | sha256sum }}
31+
{{- if not .Values.st2.existingAuthSecret }}
3132
checksum/auth: {{ include (print $.Template.BasePath "/secrets_st2auth.yaml") . | sha256sum }}
33+
{{- end }}
3234
{{- if .Values.st2auth.postStartScript }}
3335
checksum/post-start-script: {{ .Values.st2auth.postStartScript | sha256sum }}
3436
{{- end }}
@@ -1584,7 +1586,9 @@ spec:
15841586
checksum/config: {{ include (print $.Template.BasePath "/configmaps_st2-conf.yaml") . | sha256sum }}
15851587
checksum/rbac: {{ include (print $.Template.BasePath "/configmaps_rbac.yaml") . | sha256sum }}
15861588
checksum/packs: {{ include (print $.Template.BasePath "/configmaps_packs.yaml") . | sha256sum }}
1589+
{{- if not .Values.st2.existingAuthSecret }}
15871590
checksum/auth: {{ include (print $.Template.BasePath "/secrets_st2auth.yaml") . | sha256sum }}
1591+
{{- end }}
15881592
checksum/ssh: {{ include (print $.Template.BasePath "/secrets_ssh.yaml") . | sha256sum }}
15891593
{{- if and (ne "disable" (default "" .Values.st2.datastore_crypto_key)) (not .Values.st2.existingDatastoreSecret) }}
15901594
checksum/datastore-key: {{ include (print $.Template.BasePath "/secrets_datastore_crypto_key.yaml") . | sha256sum }}

0 commit comments

Comments
 (0)