Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func Register

func Register(plugins *admission.Plugins)

    Register registers a plugin

    Types

    type Lifecycle

    type Lifecycle struct {
    	*admission.Handler
    	// 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

          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.

              func (*Lifecycle) ValidateInitialization

              func (l *Lifecycle) ValidateInitialization() error

                ValidateInitialization implements the InitializationValidator interface.

                Source Files