From 460ee1e708c6b7541d10e658b1b8fa7bb3b0c2ec Mon Sep 17 00:00:00 2001 From: Lukas Jost Date: Sat, 10 Feb 2024 21:50:51 +0000 Subject: [PATCH] fix(argo-cd): Restart repo server on known-hosts configmap change Fixes ArgoCD Repo Server does not restart when `argocd-ssh-known-hosts-cm` changes #2493 Signed-off-by: Lukas Jost --- charts/argo-cd/Chart.yaml | 6 +++--- charts/argo-cd/templates/argocd-repo-server/deployment.yaml | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/charts/argo-cd/Chart.yaml b/charts/argo-cd/Chart.yaml index 5346f909..4cf6aa00 100644 --- a/charts/argo-cd/Chart.yaml +++ b/charts/argo-cd/Chart.yaml @@ -3,7 +3,7 @@ appVersion: v2.10.0 kubeVersion: ">=1.23.0-0" description: A Helm chart for Argo CD, a declarative, GitOps continuous delivery tool for Kubernetes. name: argo-cd -version: 6.0.5 +version: 6.0.6 home: https://github.com/argoproj/argo-helm icon: https://argo-cd.readthedocs.io/en/stable/assets/logo.png sources: @@ -26,5 +26,5 @@ annotations: fingerprint: 2B8F22F57260EFA67BE1C5824B11F800CD9D2252 url: https://argoproj.github.io/argo-helm/pgp_keys.asc artifacthub.io/changes: | - - kind: changed - description: Improved documentation for various ingress setups + - kind: fixed + description: Restart ArgoCD repository server on known-hosts configmap change diff --git a/charts/argo-cd/templates/argocd-repo-server/deployment.yaml b/charts/argo-cd/templates/argocd-repo-server/deployment.yaml index 2d232591..83b42335 100755 --- a/charts/argo-cd/templates/argocd-repo-server/deployment.yaml +++ b/charts/argo-cd/templates/argocd-repo-server/deployment.yaml @@ -36,6 +36,7 @@ spec: {{- if .Values.configs.cmp.create }} checksum/cmp-cm: {{ include (print $.Template.BasePath "/argocd-configs/argocd-cmp-cm.yaml") . | sha256sum }} {{- end }} + checksum/known-hosts-cm: {{ include (print $.Template.BasePath "/argocd-configs/argocd-ssh-known-hosts-cm.yaml") . | sha256sum }} {{- with (mergeOverwrite (deepCopy .Values.global.podAnnotations) .Values.repoServer.podAnnotations) }} {{- range $key, $value := . }} {{ $key }}: {{ $value | quote }}