Skip to content

Commit

Permalink
fix: restart on secret map changes (#437)
Browse files Browse the repository at this point in the history
  • Loading branch information
witalisoft authored Aug 29, 2024
1 parent c1adf43 commit 75f6cae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/netdata/templates/child/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
{{- if .Values.child.podAnnotationAppArmor.enabled }}
container.apparmor.security.beta.kubernetes.io/{{ .Chart.Name }}: unconfined
{{- end }}
checksum/config: {{ include (print $.Template.BasePath "/child/configmap.yaml") . | sha256sum }}
checksum/config: {{ print (include (print $.Template.BasePath "/child/configmap.yaml") .) (include (print $.Template.BasePath "/child/secrets.yaml") .) | sha256sum }}
{{- with .Values.child.podAnnotations }}
{{ toYaml . | trim | indent 8 }}
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion charts/netdata/templates/k8s-state/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
{{- if .Values.k8sState.podAnnotationAppArmor.enabled }}
container.apparmor.security.beta.kubernetes.io/{{ .Chart.Name }}: unconfined
{{- end }}
checksum/config: {{ include (print $.Template.BasePath "/k8s-state/configmap.yaml") . | sha256sum }}
checksum/config: {{ print (include (print $.Template.BasePath "/k8s-state/configmap.yaml") .) (include (print $.Template.BasePath "/k8s-state/secrets.yaml") .) | sha256sum }}
{{- with .Values.k8sState.podAnnotations }}
{{ toYaml . | trim | indent 8 }}
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion charts/netdata/templates/parent/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
{{ toYaml . | trim | indent 8 }}
{{- end }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/parent/configmap.yaml") . | sha256sum }}
checksum/config: {{ print (include (print $.Template.BasePath "/parent/configmap.yaml") .) (include (print $.Template.BasePath "/parent/secrets.yaml") .) | sha256sum }}
{{- with .Values.parent.podAnnotations }}
{{ toYaml . | trim | indent 8 }}
{{- end }}
Expand Down

0 comments on commit 75f6cae

Please sign in to comment.