Skip to content

Commit 3a18d00

Browse files
jmrieboldmstopa-splunk
authored andcommitted
feat: Adds config checksums to Helm chart to trigger rollout on change (#2551)
1 parent 15c1835 commit 3a18d00

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

charts/splunk-connect-for-syslog/templates/statefulset.yaml

+10-1
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,17 @@ spec:
1515
{{- include "splunk-connect-for-syslog.selectorLabels" . | nindent 6 }}
1616
template:
1717
metadata:
18-
{{- with .Values.podAnnotations }}
1918
annotations:
19+
{{- if .Values.sc4s.config_files }}
20+
checksum/config: {{ include (print $.Template.BasePath "/config-configmap.yaml") . | sha256sum }}
21+
{{- end }}
22+
{{- if .Values.sc4s.addons }}
23+
checksum/addon-config: {{ include (print $.Template.BasePath "/addon-configmap.yaml") . | sha256sum }}
24+
{{- end }}
25+
{{- if .Values.sc4s.context_files }}
26+
checksum/context-config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
27+
{{- end }}
28+
{{- with .Values.podAnnotations }}
2029
{{- toYaml . | nindent 8 }}
2130
{{- end }}
2231
labels:

0 commit comments

Comments
 (0)