Version: v1.14.6 Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2019 License: Apache-2.0, Apache-2.0 Imports: 16 Imported by: 0




View Source
const (
	// PluginName indicates the name of admission plug-in
	PluginName = "NamespaceLifecycle"


This section is empty.


func Register

func Register(plugins *admission.Plugins)

Register registers a plugin


type Lifecycle added in v1.9.0

type Lifecycle struct {
	// contains filtered or unexported fields

Lifecycle is an implementation of admission.Interface. It enforces life-cycle constraints around a Namespace depending on its Phase

func NewLifecycle

func NewLifecycle(immortalNamespaces sets.String) (*Lifecycle, error)

NewLifecycle creates a new namespace Lifecycle admission control handler

func (*Lifecycle) Admit added in v1.9.0

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

func (l *Lifecycle) ValidateInitialization() error

ValidateInitialization implements the InitializationValidator interface.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL