From f4fc529905b478f9159fdccca3de9ad3234bc95d Mon Sep 17 00:00:00 2001 From: Brian Dunnigan Date: Tue, 20 Aug 2024 13:50:27 -0400 Subject: [PATCH] #2890 Added configmap checksum annotation to restart Deployments on ConfigMap update Signed-off-by: Brian Dunnigan --- charts/argo-workflows/Chart.yaml | 6 +++--- .../controller/workflow-controller-deployment.yaml | 3 ++- .../argo-workflows/templates/server/server-deployment.yaml | 3 ++- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/charts/argo-workflows/Chart.yaml b/charts/argo-workflows/Chart.yaml index 1ed66b76..aefda4c4 100644 --- a/charts/argo-workflows/Chart.yaml +++ b/charts/argo-workflows/Chart.yaml @@ -3,7 +3,7 @@ appVersion: v3.5.10 name: argo-workflows description: A Helm chart for Argo Workflows type: application -version: 0.41.14 +version: 0.42.0 icon: https://argo-workflows.readthedocs.io/en/stable/assets/logo.png home: https://github.com/argoproj/argo-helm sources: @@ -16,5 +16,5 @@ annotations: fingerprint: 2B8F22F57260EFA67BE1C5824B11F800CD9D2252 url: https://argoproj.github.io/argo-helm/pgp_keys.asc artifacthub.io/changes: | - - kind: fixed - description: Avoid empty namespace in role binding when singleNamespace is true + - kind: added + description: Added configmap checksum annotation to restart Deployments on ConfigMap update diff --git a/charts/argo-workflows/templates/controller/workflow-controller-deployment.yaml b/charts/argo-workflows/templates/controller/workflow-controller-deployment.yaml index b3db5f4e..56fafe58 100644 --- a/charts/argo-workflows/templates/controller/workflow-controller-deployment.yaml +++ b/charts/argo-workflows/templates/controller/workflow-controller-deployment.yaml @@ -24,8 +24,9 @@ spec: {{- with.Values.controller.podLabels }} {{- toYaml . | nindent 8 }} {{- end }} - {{- with .Values.controller.podAnnotations }} annotations: + checksum/config: {{ include (print $.Template.BasePath "/controller/workflow-controller-config-map.yaml") . | sha256sum }} + {{- with .Values.controller.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }} spec: diff --git a/charts/argo-workflows/templates/server/server-deployment.yaml b/charts/argo-workflows/templates/server/server-deployment.yaml index a4b8df7b..732f1dba 100644 --- a/charts/argo-workflows/templates/server/server-deployment.yaml +++ b/charts/argo-workflows/templates/server/server-deployment.yaml @@ -27,8 +27,9 @@ spec: {{- with .Values.server.podLabels }} {{- toYaml . | nindent 8 }} {{- end }} - {{- with .Values.server.podAnnotations }} annotations: + checksum/config: {{ include (print $.Template.BasePath "/controller/workflow-controller-config-map.yaml") . | sha256sum }} + {{- with .Values.server.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }} spec: