import "k8s.io/kubernetes/plugin/pkg/admission/namespace/exists"
const PluginName = "NamespaceExists"
PluginName indicates name of admission plugin.
Register registers a plugin
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.
NewExists creates a new namespace exists admission control handler
func (e *Exists) SetExternalKubeClientSet(client kubernetes.Interface)
SetExternalKubeClientSet implements the WantsExternalKubeClientSet interface.
func (e *Exists) SetExternalKubeInformerFactory(f informers.SharedInformerFactory)
SetExternalKubeInformerFactory implements the WantsExternalKubeInformerFactory interface.
func (e *Exists) Validate(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error
Validate makes an admission decision based on the request attributes
ValidateInitialization implements the InitializationValidator interface.
Package exists imports 11 packages (graph) and is imported by 83 packages. Updated 2020-03-25. Refresh now. Tools for package owners.