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) SetExternalKubeClientSet(client kubernetes.Interface)
- func (l *Lifecycle) SetExternalKubeInformerFactory(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) 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.
Click to show internal directories.
Click to hide internal directories.