Version: v1.14.0 Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2019 License: Apache-2.0 Imports: 11 Imported by: 0




View Source
const PluginName = "NamespaceAutoProvision"

PluginName indicates name of admission plugin.


This section is empty.


func Register added in v1.7.0

func Register(plugins *admission.Plugins)

Register registers a plugin


type Provision added in v1.9.0

type Provision struct {
	// 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

func NewProvision() *Provision

NewProvision creates a new namespace provision admission control handler

func (*Provision) Admit added in v1.9.0

Admit makes an admission decision based on the request attributes

func (*Provision) SetExternalKubeClientSet added in v1.13.0

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

SetExternalKubeClientSet implements the WantsExternalKubeClientSet interface.

func (*Provision) SetExternalKubeInformerFactory added in v1.13.0

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

SetExternalKubeInformerFactory implements the WantsExternalKubeInformerFactory interface.

func (*Provision) ValidateInitialization added in v1.9.0

func (p *Provision) ValidateInitialization() error

ValidateInitialization implements the InitializationValidator interface.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL