-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
Build controller roles/bindings on demand #51818
Conversation
cc @kubernetes/sig-auth-pr-reviews |
/approve no-issue |
/lgtm |
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.
Dislike that we can now panic from outside an init(), but we've got plenty of test coverage on this front and it keeps the diff smaller.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: enj, ericchiang, liggitt Associated issue requirement bypassed by: liggitt The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
Automatic merge from submit-queue (batch tested with PRs 51819, 51706, 51761, 51818, 51500) |
As we start to have alpha gated features that involve policy changes, we need to conditionally include roles/bindings in policy based on feature enablement.
Examples:
This moves the policy building from an init() func to be on demand, so that feature gates set at the point we set up the post-start reconcile take effect