exists

package
v1.13.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const PluginName = "NamespaceExists"

PluginName indicates name of admission plugin.

Variables

This section is empty.

Functions

func Register added in v1.7.0

func Register(plugins *admission.Plugins)

Register registers a plugin

Types

type Exists added in v1.9.0

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

Exists is an implementation of admission.Interface. It rejects all incoming requests in a namespace context if the namespace does not exist. It is useful in deployments that want to enforce pre-declaration of a Namespace resource.

func NewExists

func NewExists() *Exists

NewExists creates a new namespace exists admission control handler

func (*Exists) SetExternalKubeClientSet added in v1.13.1

func (e *Exists) SetExternalKubeClientSet(client kubernetes.Interface)

SetExternalKubeClientSet implements the WantsExternalKubeClientSet interface.

func (*Exists) SetExternalKubeInformerFactory added in v1.13.1

func (e *Exists) SetExternalKubeInformerFactory(f informers.SharedInformerFactory)

SetExternalKubeInformerFactory implements the WantsExternalKubeInformerFactory interface.

func (*Exists) Validate added in v1.9.0

func (e *Exists) Validate(a admission.Attributes) error

Validate makes an admission decision based on the request attributes

func (*Exists) ValidateInitialization added in v1.9.0

func (e *Exists) 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