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
Describe the bug
The argocd-server pod shows a lot of errors like these:
W0312 10:33:57.113524 1 reflector.go:324] pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:167: failed to list *v1alpha1.ApplicationSet: applicationsets.argoproj.io is forbidden: User "system:serviceaccount:argocd:argocd-argocd-server" cannot list resource "applicationsets" in API group "argoproj.io" in the namespace "argocd"
E0312 10:33:57.113554 1 reflector.go:138] pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:167: Failed to watch *v1alpha1.ApplicationSet: failed to list *v1alpha1.ApplicationSet: applicationsets.argoproj.io is forbidden: User "system:serviceaccount:argocd:argocd-argocd-server" cannot list resource "applicationsets" in API group "argoproj.io" in the namespace "argocd"
This is because the argocd-role argocd-server doesn't include the permissions to watch and listen applicationsets.
Hi @dortlii, thanks for reporting the issue. I believe the issue is fixed in recent v1.12.0 version of gitops-operator with argoproj-labs/argocd-operator#1140 . The backport of this fix is not yet released for gitops-operator v1.11.z.
Describe the bug
The
argocd-server
pod shows a lot of errors like these:This is because the argocd-role
argocd-server
doesn't include the permissions to watch and listenapplicationsets
.Snippet from role yaml:
Role config of the
gitops-operator
withoutapplicationsets
(v1.11.0):https://github.com/redhat-developer/gitops-operator/blob/4803ae0f7e6abc7d9583ac56df4c18b1d8eead77/config/rbac/role.yaml#L192C1-L199C19
Upstream ArgoCD role config with
applicationsets
(v2.9.5):https://github.com/argoproj/argo-cd/blob/f9436641a616d277ab1f98694e5ce4c986d4ea05/manifests/base/server/argocd-server-role.yaml#L23C1-L36C10
Issue happens in OpenShift 4.13.17 with GitOps Operator v1.11.1. Applying
applicationsets
is working as in our usage.To Reproduce
Steps to reproduce the behavior:
Expected behavior
The logs of the pod should not contain the error message.
Screenshots
No screenshot provided
Additional context
ArgoCD CRD YAML:
The text was updated successfully, but these errors were encountered: