kubernetes: k8s.io/kubernetes/plugin/pkg/admission/namespace/exists Index | Files

package exists

import "k8s.io/kubernetes/plugin/pkg/admission/namespace/exists"

Index

Package Files

admission.go

Constants

const PluginName = "NamespaceExists"

PluginName indicates name of admission plugin.

func Register Uses

func Register(plugins *admission.Plugins)

Register registers a plugin

type Exists Uses

type Exists struct {
    *admission.Handler
    // contains filtered or unexported fields
}

Exists is an implementation of admission.Interface. It rejects all incoming requests in a namespace context if the namespace does not exist. It is useful in deployments that want to enforce pre-declaration of a Namespace resource.

func NewExists Uses

func NewExists() *Exists

NewExists creates a new namespace exists admission control handler

func (*Exists) SetExternalKubeClientSet Uses

func (e *Exists) SetExternalKubeClientSet(client kubernetes.Interface)

SetExternalKubeClientSet implements the WantsExternalKubeClientSet interface.

func (*Exists) SetExternalKubeInformerFactory Uses

func (e *Exists) SetExternalKubeInformerFactory(f informers.SharedInformerFactory)

SetExternalKubeInformerFactory implements the WantsExternalKubeInformerFactory interface.

func (*Exists) Validate Uses

func (e *Exists) Validate(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error

Validate makes an admission decision based on the request attributes

func (*Exists) ValidateInitialization Uses

func (e *Exists) ValidateInitialization() error

ValidateInitialization implements the InitializationValidator interface.

Package exists imports 11 packages (graph) and is imported by 52 packages. Updated 2019-08-22. Refresh now. Tools for package owners.