lifecycle

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2025 License: MIT Imports: 16 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 indicates the name of admission plug-in.
	PluginName = "NamespaceLifecycle"
)

Variables

This section is empty.

Functions

func Register

func Register(plugins *admission.Plugins)

Register registers a plugin.

Types

type Lifecycle

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

Lifecycle is an implementation of admission.Interface. It enforces life-cycle constraints around a Namespace depending on its Phase.

func NewLifecycle

func NewLifecycle(immortalNamespaces sets.String) (*Lifecycle, error)

NewLifecycle creates a new namespace Lifecycle admission control handler.

func (*Lifecycle) Admit

Admit makes an admission decision based on the request attributes.

func (*Lifecycle) SetInternalClientSet

func (l *Lifecycle) SetInternalClientSet(client clientset.Interface)

SetInternalClientSet implements the WantsInternalClientSet interface.

func (*Lifecycle) SetInternalInformerFactory

func (l *Lifecycle) SetInternalInformerFactory(f informers.SharedInformerFactory)

SetInternalInformerFactory implements the WantsInternalInformerFactory interface.

func (*Lifecycle) ValidateInitialization

func (l *Lifecycle) 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