Documentation ¶
Index ¶
Constants ¶
View Source
const PluginName = "NamespaceExists"
PluginName indicates name of admission plugin.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Exists ¶ added in v1.9.1
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) SetInternalKubeClientSet ¶ added in v1.9.1
func (e *Exists) SetInternalKubeClientSet(client internalclientset.Interface)
SetInternalKubeClientSet implements the WantsInternalKubeClientSet interface.
func (*Exists) SetInternalKubeInformerFactory ¶ added in v1.9.1
func (e *Exists) SetInternalKubeInformerFactory(f informers.SharedInformerFactory)
SetInternalKubeInformerFactory implements the WantsInternalKubeInformerFactory interface.
func (*Exists) Validate ¶ added in v1.9.1
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.1
ValidateInitialization implements the InitializationValidator interface.
Click to show internal directories.
Click to hide internal directories.