apiserver: k8s.io/apiserver/pkg/admission/plugin/namespace/lifecycle Index | Files

package lifecycle

import "k8s.io/apiserver/pkg/admission/plugin/namespace/lifecycle"


Package Files



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

func Register Uses

func Register(plugins *admission.Plugins)

Register registers a plugin

type Lifecycle Uses

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 Uses

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

NewLifecycle creates a new namespace Lifecycle admission control handler

func (*Lifecycle) Admit Uses

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 Uses

func (l *Lifecycle) SetExternalKubeClientSet(client kubernetes.Interface)

SetExternalKubeClientSet implements the WantsExternalKubeClientSet interface.

func (*Lifecycle) SetExternalKubeInformerFactory Uses

func (l *Lifecycle) SetExternalKubeInformerFactory(f informers.SharedInformerFactory)

SetExternalKubeInformerFactory implements the WantsExternalKubeInformerFactory interface.

func (*Lifecycle) ValidateInitialization Uses

func (l *Lifecycle) ValidateInitialization() error

ValidateInitialization implements the InitializationValidator interface.

Package lifecycle imports 17 packages (graph) and is imported by 57 packages. Updated 2020-05-26. Refresh now. Tools for package owners.