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) SetExternalClientSet(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) SetExternalClientSet ¶
SetExternalClientSet implements the WantsExternalClientSet interface.
func (*Lifecycle) SetInternalInformerFactory ¶
func (l *Lifecycle) SetInternalInformerFactory(f informers.SharedInformerFactory)
SetInternalInformerFactory implements the WantsExternalInformerFactory interface.
func (*Lifecycle) ValidateInitialization ¶
ValidateInitialization implements the InitializationValidator interface.
Click to show internal directories.
Click to hide internal directories.