mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-29 21:29:24 +00:00
Automatic merge from submit-queue (batch tested with PRs 38702, 41810, 41778, 41858, 41872) Always enable RBAC in kubeadm and make a pkg with authorization constants **What this PR does / why we need it**: This PR: - Splits the authz constants out into a dedicated package, so consumers don't have to import lots of other things (informers, etc...) - Makes a `IsValidAuthorizationMode` function for easy checking - Hooks up kubeadm against the new constant package, for example using the validation method when validating the kubeadm API obj - Always enables RBAC in kubeadm as discussed with @liggitt and @jbeda - This because we have to grant some rules in all cases for kubeadm (for instance, making the cluster-info configmap public) - Adds more unit tests **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # **Special notes for your reviewer**: **Release note**: ```release-note NONE ``` @liggitt @jbeda @errordeveloper @dmmcquay @pires @deads2k