Documentation ¶
Index ¶
- Constants
- func Register(plugins *admission.Plugins)
- type Lifecycle
- func (l *Lifecycle) Admit(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error
- func (l *Lifecycle) SetInternalClientSet(client clientset.Interface)
- func (l *Lifecycle) SetInternalInformerFactory(f informers.SharedInformerFactory)
- func (l *Lifecycle) ValidateInitialization() error
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(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error
Admit makes an admission decision based on the request attributes.
func (*Lifecycle) SetInternalClientSet ¶
SetInternalClientSet implements the WantsInternalClientSet interface.
func (*Lifecycle) SetInternalInformerFactory ¶
func (l *Lifecycle) SetInternalInformerFactory(f informers.SharedInformerFactory)
SetInternalInformerFactory implements the WantsInternalInformerFactory interface.
func (*Lifecycle) ValidateInitialization ¶
ValidateInitialization implements the InitializationValidator interface.
Click to show internal directories.
Click to hide internal directories.