From f2fcf29ed7e5235ee1fe7c1ce0d7e466de12dae6 Mon Sep 17 00:00:00 2001 From: Matthias Baur Date: Thu, 4 Jan 2024 14:24:29 +0100 Subject: [PATCH] Automatically restart operator on config changes Signed-off-by: Matthias Baur --- charts/cloudnative-pg/templates/deployment.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/charts/cloudnative-pg/templates/deployment.yaml b/charts/cloudnative-pg/templates/deployment.yaml index 45619fa70..858248a66 100644 --- a/charts/cloudnative-pg/templates/deployment.yaml +++ b/charts/cloudnative-pg/templates/deployment.yaml @@ -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: