Skip to content

Commit

Permalink
feat: Adds config checksums to Helm chart to trigger rollout on change
Browse files Browse the repository at this point in the history
  • Loading branch information
jmriebold committed Aug 7, 2024
1 parent 239f6c7 commit a789e3a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion charts/splunk-connect-for-syslog/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,17 @@ spec:
{{- include "splunk-connect-for-syslog.selectorLabels" . | nindent 6 }}
template:
metadata:
{{- with .Values.podAnnotations }}
annotations:
{{- if .Values.sc4s.config_files }}
checksum/config: {{ include (print $.Template.BasePath "/config-configmap.yaml") . | sha256sum }}
{{- end }}
{{- if .Values.sc4s.addons }}
checksum/addon-config: {{ include (print $.Template.BasePath "/addon-configmap.yaml") . | sha256sum }}
{{- end }}
{{- if .Values.sc4s.context_files }}
checksum/context-config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
{{- end }}
{{- with .Values.podAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
Expand Down

0 comments on commit a789e3a

Please sign in to comment.