From c72a9333e90f3ce75f038f20f1a9af725558de1f Mon Sep 17 00:00:00 2001 From: Andrei Kvapil Date: Wed, 26 Nov 2025 19:16:16 +0100 Subject: [PATCH] [dashboard] Add config hash annotations to restart pods on config changes Signed-off-by: Andrei Kvapil --- packages/system/dashboard/templates/nginx.yaml | 2 +- packages/system/dashboard/templates/web.yaml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/system/dashboard/templates/nginx.yaml b/packages/system/dashboard/templates/nginx.yaml index a5cbebed..caa75fa7 100644 --- a/packages/system/dashboard/templates/nginx.yaml +++ b/packages/system/dashboard/templates/nginx.yaml @@ -16,7 +16,7 @@ spec: template: metadata: annotations: - checksum/configmap-configurationnginxfile: 258c66b019c8c7f4a5d0a78dfd7bf297ce486b213346fbd2879c466abfc377e0 + checksum/config: {{ include (print $.Template.BasePath "/nginx-config.yaml") . | sha256sum }} labels: app.kubernetes.io/instance: incloud-web app.kubernetes.io/name: nginx diff --git a/packages/system/dashboard/templates/web.yaml b/packages/system/dashboard/templates/web.yaml index b647c743..17bc9c78 100644 --- a/packages/system/dashboard/templates/web.yaml +++ b/packages/system/dashboard/templates/web.yaml @@ -15,7 +15,8 @@ spec: type: RollingUpdate template: metadata: - annotations: null + annotations: + checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} labels: app.kubernetes.io/instance: incloud-web app.kubernetes.io/name: web