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 ¶
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(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.
Click to show internal directories.
Click to hide internal directories.