import "k8s.io/kubernetes/plugin/pkg/admission/namespace/autoprovision"
const PluginName = "NamespaceAutoProvision"
PluginName indicates name of admission plugin.
Register registers a plugin
Provision is an implementation of admission.Interface. It looks at all incoming requests in a namespace context, and if the namespace does not exist, it creates one. It is useful in deployments that do not want to restrict creation of a namespace prior to its usage.
NewProvision creates a new namespace provision admission control handler
func (p *Provision) Admit(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error
Admit makes an admission decision based on the request attributes
func (p *Provision) SetExternalKubeClientSet(client kubernetes.Interface)
SetExternalKubeClientSet implements the WantsExternalKubeClientSet interface.
func (p *Provision) SetExternalKubeInformerFactory(f informers.SharedInformerFactory)
SetExternalKubeInformerFactory implements the WantsExternalKubeInformerFactory interface.
ValidateInitialization implements the InitializationValidator interface.
Package autoprovision imports 12 packages (graph) and is imported by 83 packages. Updated 2020-05-12. Refresh now. Tools for package owners.