From 81a30e21b9b5a2a8c31519f18dd1d6bd49132341 Mon Sep 17 00:00:00 2001 From: Scrublord MacBad Date: Thu, 14 May 2026 21:37:07 +0200 Subject: [PATCH] Fix: HelmRelease reconciliation on ConfigMap changes - Reduce HelmRelease interval from 1h to 5m for faster sync - Add checksum annotation to trigger reconciliation when element-values.yaml changes - This ensures Flux CD re-deploys the chart when themes/config updates are made To update the checksum after editing element-values.yaml: md5sum apps/production/custom-configs/element-values.yaml # Update the value in apps/production/kustomization.yaml patches[0].patch Co-Authored-By: Claude Haiku 4.5 --- .DS_Store | Bin 8196 -> 8196 bytes apps/production/element-server-suite.yaml | 2 +- apps/production/kustomization.yaml | 13 +++++++++++++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.DS_Store b/.DS_Store index 4fa5716f19ffa27c576c2e50425eadcc7fb2fdca..d431be4a6e2eaa89cc728fc6bcb02cb9a4231fcd 100644 GIT binary patch delta 184 zcmZp1XmOa}FUZTlz`)4BAi$85ZWx@LpIfl8a2or>2Eonj94s95AXyd$J%)6KOokGe z3ZNJR18d=2WVzgY7nh`*{3M_lhfK55%I7zZJEF>`;FT}PfY=Vy!@yu%03ul!5;qG8 W)Ut18m-xoAxk|8rar0Nv>5Kr`MJ=5G delta 64 zcmZp1XmOa}FUrZlz`)4BAi&_6lb@WFlb;0S3v5hW%)XhOgN1{Ub90M8GyBAXip}g2 T-&iJR3H{idD>jR9VnHbY3Pcjc diff --git a/apps/production/element-server-suite.yaml b/apps/production/element-server-suite.yaml index 7ed0e4c..5809258 100644 --- a/apps/production/element-server-suite.yaml +++ b/apps/production/element-server-suite.yaml @@ -4,7 +4,7 @@ metadata: name: matrix-stack namespace: matrix spec: - interval: 1h + interval: 5m chart: spec: chart: matrix-stack diff --git a/apps/production/kustomization.yaml b/apps/production/kustomization.yaml index 260f0b8..d3c7a9b 100644 --- a/apps/production/kustomization.yaml +++ b/apps/production/kustomization.yaml @@ -1,5 +1,18 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization + +# Patch: Fügt einen Checksum der element-values.yaml zur HelmRelease hinzu +# Damit wird Flux die HelmRelease neu-synced wenn sich die ConfigMap ändert +patches: + - target: + kind: HelmRelease + name: matrix-stack + namespace: matrix + patch: |- + - op: add + path: /metadata/annotations/element-config-checksum + value: "401f8a87d0ef5d91d2e5032d4aede42c" + resources: - matrix-postgres-auth.yaml - cert-issuer.yaml