Repository navigation
Replies: 1 comment 7 replies
|
Hi @cnukwas, unfortunately, binding the application-controller's SA to the So, you will need an additional apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: argocd-application-controller
rules:
- apiGroups:
- "*"
resources:
- "*"
verbs:
- get
- list
- watchand then bind it to your ServiceAccount used by argocd-application-controller, e.g to subjects:
- kind: ServiceAccount
name: myns-argo-argocd-application-controller
namespace: myns-argo |
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I am new to Argo CD and OpenShift GitOps. I have set up Argo CD instance in one of the OpenShift namespaces and trying to deploy Argo guestbook example in guestbook namespace and getting this error. I believe this is a valid error, but no clue on if it's a Argo CD or OpenShift GitOps operator issue. I am posting here in case anyone is ran into similar issue when Argo CD instance is set up at Namespace scope, rather than using default Argo CD instance created OpenShift GitOps operator(1.1.2 with Argo CD 2.0.0) installation as a cluster admin. Posting here to get community feedback, going to check with OpenShift folks as well.
ComparisonError Namespace "guestbook" for Deployment "guestbook-ui" is not managedCreated 2 namespaces myns-argo and guestbook, created an instance of Argo in the myns-argo ns, created a 'admin' rolebinding in the guestbook ns for the Argo service account(myns-argo-argocd-application-controller) as below.
Based on what I read or saw from a OpenShift video, this is supposed to work, but it's not. Either this no longer works or I am missing something here.
Update:
Noticed that Argo Cluster configuration had only myns-argo namespace entry only, so added guestbook to the list and the entry now looks as below.
NAMESPACES: myns-argo, guestbookNow getting additional errors, so it appears that Argo CD instance requires clusterrole RBAC even when it's set up at namespace scope(if that's the right terminology to use). I read about exclusion and inclusion list for the Argo instance, is that what needs to be done here to limit Argo instance access to certain resources only?
Thanks
All reactions