package exists
import "k8s.io/kubernetes/plugin/pkg/admission/namespace/exists"
Index ¶
- Constants
- func Register(plugins *admission.Plugins)
- type Exists
- func NewExists() *Exists
- func (e *Exists) SetExternalKubeClientSet(client kubernetes.Interface)
- func (e *Exists) SetExternalKubeInformerFactory(f informers.SharedInformerFactory)
- func (e *Exists) Validate(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error
- func (e *Exists) ValidateInitialization() error
Constants ¶
const PluginName = "NamespaceExists"
PluginName indicates name of admission plugin.
Functions ¶
func Register ¶
Register registers a plugin
Types ¶
type Exists ¶
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 ¶
func (e *Exists) SetExternalKubeClientSet(client kubernetes.Interface)
SetExternalKubeClientSet implements the WantsExternalKubeClientSet interface.
func (*Exists) SetExternalKubeInformerFactory ¶
func (e *Exists) SetExternalKubeInformerFactory(f informers.SharedInformerFactory)
SetExternalKubeInformerFactory implements the WantsExternalKubeInformerFactory interface.
func (*Exists) Validate ¶
func (e *Exists) Validate(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error
Validate makes an admission decision based on the request attributes
func (*Exists) ValidateInitialization ¶
ValidateInitialization implements the InitializationValidator interface.
Source Files ¶
admission.go
- Version
- v1.33.0 (latest)
- Published
- Apr 23, 2025
- Platform
- linux/amd64
- Imports
- 11 packages
- Last checked
- 3 hours ago –
Tools for package owners.