OpenShift GitOps sync is failing in user namespace
Issue
-
ArgoCD
project sync fails with the below error.serviceaccounts "" is forbidden: User "system:serviceaccount:openshift-gitops:openshift-gitops-argocd-application-controller" cannot patch resource "serviceaccounts" in API group "" in the namespace "": RBAC: clusterrole.rbac.authorization.k8s.io "" not found
-
After deploying
ArgoCD
instance on a customer's namespace, tried to create a new application but this was unsuccessful as we have this error during sync :failed to sync cluster https://x.x.x.x:443: failed to load initial state of resource PodTemplate: podtemplates is forbidden: User "system:serviceaccount:argocd-customer-test:customer-instance-argocd-application-controller" cannot list resource "podtemplates" in API group "" at the cluster scope
Environment
- Red Hat OpenShift GitOps
- v1.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.