From 8495d6bb5c0ef5ece48020664ec63439b86bd997 Mon Sep 17 00:00:00 2001 From: Petr Drastil Date: Thu, 13 Oct 2022 18:17:14 +0200 Subject: [PATCH] fix(argo-cd): Leader election for ApplicationSet controller (#1554) Signed-off-by: Petr Drastil --- charts/argo-cd/Chart.yaml | 8 ++------ .../argo-cd/templates/argocd-applicationset/role.yaml | 10 ++++++++++ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/charts/argo-cd/Chart.yaml b/charts/argo-cd/Chart.yaml index de82880d..bbc2abf1 100644 --- a/charts/argo-cd/Chart.yaml +++ b/charts/argo-cd/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 appVersion: v2.4.14 description: A Helm chart for Argo CD, a declarative, GitOps continuous delivery tool for Kubernetes. name: argo-cd -version: 5.5.24 +version: 5.5.25 home: https://github.com/argoproj/argo-helm icon: https://argo-cd.readthedocs.io/en/stable/assets/logo.png sources: @@ -22,8 +22,4 @@ dependencies: condition: redis-ha.enabled annotations: artifacthub.io/changes: | - - "[Added]: PDB for Application Set controller" - - "[Added]: PDB for Notifications controller" - - "[Added]: PDB for Slack bot" - - "[Fixed]: PDB for Redis is not created if redis-ha is enabled" - - "[Changed]: Documentation for PDB usage" + - "[Fixed]: Leader election permissions for ApplicationSet controller" diff --git a/charts/argo-cd/templates/argocd-applicationset/role.yaml b/charts/argo-cd/templates/argocd-applicationset/role.yaml index 15211844..8f60df1a 100644 --- a/charts/argo-cd/templates/argocd-applicationset/role.yaml +++ b/charts/argo-cd/templates/argocd-applicationset/role.yaml @@ -62,6 +62,16 @@ rules: - get - list - watch + # Leader election + - apiGroups: + - "" + resources: + - configmaps + verbs: + - create + - update + - delete + - patch - apiGroups: - coordination.k8s.io resources: