Documentation ¶
Index ¶
Constants ¶
View Source
const (
// PluginName indicates the name of admission plug-in
PluginName = "NamespaceLifecycle"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Lifecycle ¶ added in v1.9.0
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 ¶ added in v1.9.0
func (l *Lifecycle) Admit(a admission.Attributes) error
Admit makes an admission decision based on the request attributes
func (*Lifecycle) SetExternalKubeClientSet ¶ added in v1.9.0
func (l *Lifecycle) SetExternalKubeClientSet(client kubernetes.Interface)
SetExternalKubeClientSet implements the WantsExternalKubeClientSet interface.
func (*Lifecycle) SetExternalKubeInformerFactory ¶ added in v1.9.0
func (l *Lifecycle) SetExternalKubeInformerFactory(f informers.SharedInformerFactory)
SetExternalKubeInformerFactory implements the WantsExternalKubeInformerFactory interface.
func (*Lifecycle) ValidateInitialization ¶ added in v1.9.0
ValidateInitialization implements the InitializationValidator interface.
Click to show internal directories.
Click to hide internal directories.