exists

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2025 License: MIT Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const PluginName = "NamespaceExists"

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 Exists

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) SetInternalClientSet

func (e *Exists) SetInternalClientSet(client clientset.Interface)

SetInternalClientSet implements the WantsInternalClientSet interface.

func (*Exists) SetInternalInformerFactory

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

SetInternalInformerFactory implements the WantsInternalInformerFactory interface.

func (*Exists) Validate

Validate makes an admission decision based on the request attributes.

func (*Exists) ValidateInitialization

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