Documentation ¶
Index ¶
- Constants
- func Register(plugins *admission.Plugins)
- type Provision
- func (p *Provision) Admit(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error
- func (p *Provision) SetExternalMinerClientSet(client clientset.Interface)
- func (p *Provision) SetInternalMinerInformerFactory(f informers.SharedInformerFactory)
- func (p *Provision) ValidateInitialization() error
Constants ¶
const PluginName = "NamespaceAutoProvision"
PluginName indicates name of admission plugin.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Provision ¶
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.
func NewProvision ¶
func NewProvision() *Provision
NewProvision creates a new namespace provision admission control handler.
func (*Provision) Admit ¶
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 (*Provision) SetExternalMinerClientSet ¶
SetExternalMinerClientSet implements the WantsExternalMinerClientSet interface.
func (*Provision) SetInternalMinerInformerFactory ¶
func (p *Provision) SetInternalMinerInformerFactory(f informers.SharedInformerFactory)
SetInternalMinerInformerFactory implements the WantsInternalMinerInformerFactory interface.
func (*Provision) ValidateInitialization ¶
ValidateInitialization implements the InitializationValidator interface.