package lifecycle
import "k8s.io/apiserver/pkg/admission/plugin/namespace/lifecycle"
Index ¶
- Constants
- func Register(plugins *admission.Plugins)
- type Lifecycle
- func NewLifecycle(immortalNamespaces sets.String) (*Lifecycle, error)
- func (l *Lifecycle) Admit(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error
- func (l *Lifecycle) SetExternalKubeClientSet(client kubernetes.Interface)
- func (l *Lifecycle) SetExternalKubeInformerFactory(f informers.SharedInformerFactory)
- func (l *Lifecycle) ValidateInitialization() error
Constants ¶
const ( // PluginName indicates the name of admission plug-in PluginName = "NamespaceLifecycle" )
Functions ¶
func Register ¶
Register registers a plugin
Types ¶
type Lifecycle ¶
Lifecycle is an implementation of admission.Interface. It enforces life-cycle constraints around a Namespace depending on its Phase
func NewLifecycle ¶
NewLifecycle creates a new namespace Lifecycle admission control handler
func (*Lifecycle) Admit ¶
func (l *Lifecycle) Admit(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error
Admit makes an admission decision based on the request attributes
func (*Lifecycle) SetExternalKubeClientSet ¶
func (l *Lifecycle) SetExternalKubeClientSet(client kubernetes.Interface)
SetExternalKubeClientSet implements the WantsExternalKubeClientSet interface.
func (*Lifecycle) SetExternalKubeInformerFactory ¶
func (l *Lifecycle) SetExternalKubeInformerFactory(f informers.SharedInformerFactory)
SetExternalKubeInformerFactory implements the WantsExternalKubeInformerFactory interface.
func (*Lifecycle) ValidateInitialization ¶
ValidateInitialization implements the InitializationValidator interface.
Source Files ¶
admission.go
- Version
- v0.33.0 (latest)
- Published
- Apr 23, 2025
- Platform
- linux/amd64
- Imports
- 17 packages
- Last checked
- 32 minutes ago –
Tools for package owners.