From 9f114122275178a52b16667afed540fba2542b66 Mon Sep 17 00:00:00 2001 From: Derek Brown <6845676+DerekTBrown@users.noreply.github.com> Date: Tue, 1 Apr 2025 07:45:54 -0700 Subject: [PATCH] feat(argo-rollouts): restart when configmap changes (#3119) * feat: argo-rollouts restart when configmap changes Signed-off-by: Derek Brown <6845676+DerekTBrown@users.noreply.github.com> * address comments Signed-off-by: Derek Brown <6845676+DerekTBrown@users.noreply.github.com> * fix: Add newline to fix linter (new-line-at-end-of-file) Signed-off-by: Marco Maurer (-Kilchhofer) --------- Signed-off-by: Derek Brown <6845676+DerekTBrown@users.noreply.github.com> Signed-off-by: Marco Maurer (-Kilchhofer) Co-authored-by: Marco Maurer (-Kilchhofer) --- charts/argo-rollouts/Chart.yaml | 4 ++-- charts/argo-rollouts/templates/controller/deployment.yaml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/charts/argo-rollouts/Chart.yaml b/charts/argo-rollouts/Chart.yaml index 770b82f4..aee13b83 100644 --- a/charts/argo-rollouts/Chart.yaml +++ b/charts/argo-rollouts/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 appVersion: v1.8.2 description: A Helm chart for Argo Rollouts name: argo-rollouts -version: 2.39.3 +version: 2.39.4 home: https://github.com/argoproj/argo-helm icon: https://argoproj.github.io/argo-rollouts/assets/logo.png keywords: @@ -19,4 +19,4 @@ annotations: url: https://argoproj.github.io/argo-helm/pgp_keys.asc artifacthub.io/changes: | - kind: changed - description: Bump argo-rollouts to v1.8.2 + description: argo-rollouts will re-deploy if changes are made to the argo-rollouts configmap. diff --git a/charts/argo-rollouts/templates/controller/deployment.yaml b/charts/argo-rollouts/templates/controller/deployment.yaml index 7aea72a4..954453f0 100644 --- a/charts/argo-rollouts/templates/controller/deployment.yaml +++ b/charts/argo-rollouts/templates/controller/deployment.yaml @@ -31,6 +31,7 @@ spec: {{- range $key, $value := . }} {{ $key }}: {{ $value | quote }} {{- end }} + checksum/cm: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} {{- end }} labels: {{- include "argo-rollouts.selectorLabels" . | nindent 8 }}