-
Notifications
You must be signed in to change notification settings - Fork 799
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add support for custom ClusterRoles (controller,server) for cluster scoped instances #1357
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR @jparsai. I have some concerns regarding backward compatibility. Are we removing the ability to specify cluster roles via subscriptions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, just some minor stuff I could think of re: expected user behaviour.
EDIT: kuttl tests for this use case are blocked due to need to set env var, so ignore this: One more request: can you add a simple kuttl test that sets ?DefaultClusterScopedRoleCreationDisabled
to true, and ensures that ClusterRole/ClusterRoleBinding are not created
Signed-off-by: Jayendra Parsai <[email protected]>
Signed-off-by: Jonathan West <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @jparsai!
…ster scoped instances (argoproj-labs#1357) * feat: Enable use of alternate cluster roles for cluster scoped instances Signed-off-by: Jayendra Parsai <[email protected]> * Update role/binding unit tests, add a new line to the doc Signed-off-by: Jonathan West <[email protected]> --------- Signed-off-by: Jayendra Parsai <[email protected]> Signed-off-by: Jonathan West <[email protected]> Co-authored-by: Jayendra Parsai <[email protected]> Co-authored-by: Jonathan West <[email protected]>
What type of PR is this?
/kind enhancement
What does this PR do / why we need it:
This PR enables user to define custom roles for cluster scoped instances of Argo CD. This is becoming increasingly important with the addition of the auto-respect RBAC feature added in Argo CD 2.10.
Have you updated the necessary documentation?
Which issue(s) this PR fixes:
Fixes #1275
Note this also tracked in Red Hat's issue database here: https://issues.redhat.com/browse/GITOPS-2614
How to test changes / Special notes to the reviewer:
ARGOCD_CLUSTER_CONFIG_NAMESPACES
environment variable of Subscription resource.Spec.DefaultClusterScopedRoleCreationDisabled
totrue
.