kubernetes: k8s.io/kubernetes/plugin/pkg/admission/namespace/autoprovision Index | Files

package autoprovision

import "k8s.io/kubernetes/plugin/pkg/admission/namespace/autoprovision"

Index

Package Files

admission.go

Constants

const PluginName = "NamespaceAutoProvision"

PluginName indicates name of admission plugin.

func Register Uses

func Register(plugins *admission.Plugins)

Register registers a plugin

type Provision Uses

type Provision struct {
    *admission.Handler
    // contains filtered or unexported fields
}

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 Uses

func NewProvision() *Provision

NewProvision creates a new namespace provision admission control handler

func (*Provision) Admit Uses

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) SetExternalKubeClientSet Uses

func (p *Provision) SetExternalKubeClientSet(client kubernetes.Interface)

SetExternalKubeClientSet implements the WantsExternalKubeClientSet interface.

func (*Provision) SetExternalKubeInformerFactory Uses

func (p *Provision) SetExternalKubeInformerFactory(f informers.SharedInformerFactory)

SetExternalKubeInformerFactory implements the WantsExternalKubeInformerFactory interface.

func (*Provision) ValidateInitialization Uses

func (p *Provision) ValidateInitialization() error

ValidateInitialization implements the InitializationValidator interface.

Package autoprovision imports 12 packages (graph) and is imported by 52 packages. Updated 2019-09-14. Refresh now. Tools for package owners.