Skip to content

Commit

Permalink
Automatically restart operator on config changes
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Baur <[email protected]>
  • Loading branch information
baurmatt authored and phisco committed Jan 29, 2024
1 parent 42ab86f commit f2fcf29
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion charts/cloudnative-pg/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ spec:
{{- include "cloudnative-pg.selectorLabels" . | nindent 6 }}
template:
metadata:
{{- with .Values.podAnnotations }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/config.yaml") . | sha256sum }}
{{- with .Values.podAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
Expand Down

0 comments on commit f2fcf29

Please sign in to comment.