You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When setting dynamicClusterDistribution: true, and using a namespaced installation of argocd (createClusterRoles: false), the application controller's serviceaccount does not have sufficient permissions for managing the shard configmap:
{"level":"info","msg":"shard mapping configmap argocd-app-controller-shard-cm not found. Creating default shard mapping configmap.","time":"2024-05-03T11:39:52Z"}
{"level":"fatal","msg":"unable to get shard due to error updating the sharding config map: error creating shard mapping configmap configmaps is forbidden: User \"system:serviceaccount:argocd:argocd-application-controller\" cannot create resource \"configmaps\" in API group \"\" in the namespace \"argocd\"","time":"2024-05-03T11:39:52Z"}
Describe the bug
When setting
dynamicClusterDistribution: true
, and using a namespaced installation of argocd (createClusterRoles: false
), the application controller's serviceaccount does not have sufficient permissions for managing the shard configmap:This is likely a consequence of
argo-helm/charts/argo-cd/templates/argocd-application-controller/role.yaml
Lines 9 to 17 in 19ef184
where there are no
create
,update
, orpatch
permissions for configmaps defined.This issue does not arise for cluster-wide installations, as the permissions granted by the cluster role are sufficient:
argo-helm/charts/argo-cd/templates/argocd-application-controller/clusterrole.yaml
Lines 12 to 21 in 19ef184
Related helm chart
argo-cd
Helm chart version
6.11.1
To Reproduce
Expected behavior
When
dynamicClusterDistribution: true
is set, the application controller should be able to manage its sharding configmap.Screenshots
No response
Additional context
I am using ArgoCD to manage multiple remote clusters, with no other applications in the argocd cluster itself, hence the namespaced installation.
It looks like this is also the case upstream
The text was updated successfully, but these errors were encountered: