-
Notifications
You must be signed in to change notification settings - Fork 1.6k
(helm/v2-alpha): disable cluster wide rbac resource creation #5505
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -80,6 +80,17 @@ manager: | |
| ## | ||
| tolerations: [] | ||
|
|
||
| ## RBAC configuration | ||
| ## | ||
| rbac: | ||
| ## Cluster-scoped RBAC resources (ClusterRole/ClusterRoleBinding) | ||
| ## | ||
| clusterScope: | ||
| # Set to false to skip cluster-scoped RBAC, useful when the operator | ||
| # should be restricted to a single namespace or when cluster-wide | ||
| # permissions are managed externally. | ||
| enabled: true | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here for example we have no cluster scope rules since this sample is namespaced scope.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ok, that could be useful but what I'm trying to achieve is having generated helm charts templates for clickhouse-operator that can work for both cluster admins and name-spaced users. |
||
|
|
||
| ## Helper RBAC roles for managing custom resources | ||
| ## | ||
| rbacHelpers: | ||
|
|
||
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.
We have either :
So, should we have rbac:
Then, insde helpers and default for example instead?
How that would work when the solution is scaffold with the namespaced flag and the RBAC are not cluster scopes? How the Helm Chart would be in this case?
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.
@camilamacedo86 I could reuse the rbacHelpers.enabled for the main clusterrole/crb if that's what you're asking. The problem right now is that you can only generate helm charts only for cluster admins.
Uh oh!
There was an error while loading. Please reload this page.
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.
I see I am think in a way to make it generic enough and address this need.
Could you give me 1 to 2 weeks? I will push that and you can help us to know if that is a good approach. Your collab is very required and welcome btw.