-
Notifications
You must be signed in to change notification settings - Fork 16.8k
[stable/ambassador] rbac updates for CRDs and single namespace usage #14388
Conversation
Signed-off-by: Markus Maga <markus@maga.se>
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Flydiverny The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/hold /assign @kflynn |
PR looks sane; I’ll wait for feedback from users before doing anything else... |
Perhaps we need to skip rbac-crds when You could still do ambassador in single namespace mode with cluster roles ( |
Why don't we just skip rbac-crds when I could see a usecase of wanting namespaced RBAC while still wanting to use the CRD functionality. If there is some restriction against creating or giving access to anything at the cluster level, then CRDs aren't going to be desirable anyway. |
@nbkrause If you install 2 instances or more of ambassador only one of them can create the CRDs, but all of them could watch for them in their respective namespace. Ambassador requires that it can see that the CRD definitions exist, so they would need a cluster role for this, with ambassadors current logic. Is there any use case where one would do rbac.namespaced: true
scope.singleNamespace: false Wondering if |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any further update will cause the issue/pull request to no longer be considered stale. Thank you for your contributions. |
This issue is being automatically closed due to inactivity. |
What this PR does / why we need it:
Adds a cluster role for checking if ambassador crds are defined, even if running in single namespace mode with role instead of cluster role.
Removes namespace permission when rbac is namespaced.
Which issue this PR fixes
Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]
[stable/chart]
)