From dc27f5effdc045bbc0b02971a6c9faa4761b5996 Mon Sep 17 00:00:00 2001 From: paihu Date: Thu, 15 May 2025 12:45:44 +0900 Subject: [PATCH] fix(argo-workflows): Restart server when configMap is updated (#3276) * fix(argo-workflows): Restart server when configMap is updated Signed-off-by: paihu * restore controller deployment Signed-off-by: paihu --------- Signed-off-by: paihu Co-authored-by: Aikawa --- charts/argo-workflows/Chart.yaml | 6 +++--- .../argo-workflows/templates/server/server-deployment.yaml | 7 ++++++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/charts/argo-workflows/Chart.yaml b/charts/argo-workflows/Chart.yaml index bf618680..e9c8c76c 100644 --- a/charts/argo-workflows/Chart.yaml +++ b/charts/argo-workflows/Chart.yaml @@ -3,7 +3,7 @@ appVersion: v3.6.7 name: argo-workflows description: A Helm chart for Argo Workflows type: application -version: 0.45.14 +version: 0.45.15 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: changed - description: Improve argo-workflow controller clusterrole policy + - kind: fixed + description: Restart server when configMap is updated diff --git a/charts/argo-workflows/templates/server/server-deployment.yaml b/charts/argo-workflows/templates/server/server-deployment.yaml index 9d3e8c20..b52b946c 100644 --- a/charts/argo-workflows/templates/server/server-deployment.yaml +++ b/charts/argo-workflows/templates/server/server-deployment.yaml @@ -27,9 +27,14 @@ spec: {{- with .Values.server.podLabels }} {{- toYaml . | nindent 8 }} {{- end }} - {{- with .Values.server.podAnnotations }} + {{- if or .Values.server.podAnnotations .Values.controller.configMap.create }} annotations: + {{- with .Values.server.podAnnotations }} {{- toYaml . | nindent 8 }} + {{- end }} + {{- if .Values.controller.configMap.create }} + checksum/cm: {{ include (print $.Template.BasePath "/controller/workflow-controller-config-map.yaml") . | sha256sum }} + {{- end }} {{- end }} spec: serviceAccountName: {{ template "argo-workflows.serverServiceAccountName" . }}