autoprovision

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const PluginName = "NamespaceAutoProvision"

PluginName indicates name of admission plugin.

Variables

This section is empty.

Functions

func Register

func Register(plugins *admission.Plugins)

Register registers a plugin.

Types

type Provision

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

func NewProvision() *Provision

NewProvision creates a new namespace provision admission control handler.

func (*Provision) Admit

Admit makes an admission decision based on the request attributes.

func (*Provision) SetExternalMinerClientSet

func (p *Provision) SetExternalMinerClientSet(client clientset.Interface)

SetExternalMinerClientSet implements the WantsExternalMinerClientSet interface.

func (*Provision) SetInternalMinerInformerFactory

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

SetInternalMinerInformerFactory implements the WantsInternalMinerInformerFactory interface.

func (*Provision) ValidateInitialization

func (p *Provision) ValidateInitialization() error

ValidateInitialization implements the InitializationValidator interface.

Jump to

Keyboard shortcuts

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