• Kubernetes Submit Queue's avatar
    Merge pull request #31529 from deads2k/rbac-05-bootstrapping · 3802a9ba
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue
    
    add GenericAPIServer posthooks for initialization
    
    Adds the concept of a `PostStartHook` to the `GenericAPIServer` to allow post-server start hooks.  This gives a standard location to perform post-start bootstrapping tasks.  The common case usage we have downstream are security related bootstrapping tasks that are performed on the "empty etcd" initialization cases.  The RBAC authorizer is a good example of this in kube.  It needs a location to create default policies to start a server which is capable of being accessed.
    
    Kube is also likely to hit this for things like PSP and breaking the monolithic controller user into separate, scoped service accounts.
    
    @kubernetes/sig-api-machinery for the `GenericAPIServer` bits
    @kubernetes/sig-auth for the particular clusterrole bootstrapping. I've only done one to start, but I suspect we'll start making more and probably introduce a binding so that the RBAC super-user doesn't remain a special case forever.
    3802a9ba
Name
Last commit
Last update
..
component/scheduler/perf Loading commit data...
e2e Loading commit data...
e2e_node Loading commit data...
fixtures Loading commit data...
images Loading commit data...
integration Loading commit data...
kubemark Loading commit data...
soak Loading commit data...
utils Loading commit data...
.gitattributes Loading commit data...
OWNERS Loading commit data...
test_owners.csv Loading commit data...