deletionconfirmation

package
v1.48.4 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2022 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 23 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// PluginName is the name of this admission plugin.
	PluginName = "DeletionConfirmation"
)

Variables

This section is empty.

Functions

func NewFactory

func NewFactory(config io.Reader) (admission.Interface, error)

NewFactory creates a new PluginFactory.

func Register

func Register(plugins *admission.Plugins)

Register registers a plugin.

Types

type DeletionConfirmation

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

DeletionConfirmation contains an admission handler and listers.

func New

func New() (*DeletionConfirmation, error)

New creates a new DeletionConfirmation admission plugin.

func (*DeletionConfirmation) AssignReadyFunc

func (d *DeletionConfirmation) AssignReadyFunc(f admission.ReadyFunc)

AssignReadyFunc assigns the ready function to the admission handler.

func (*DeletionConfirmation) SetExternalCoreClientset added in v1.24.0

func (d *DeletionConfirmation) SetExternalCoreClientset(c externalcoreclientset.Interface)

SetExternalCoreClientset gets the clientset from the Kubernetes client.

func (*DeletionConfirmation) SetExternalCoreInformerFactory added in v1.24.0

func (d *DeletionConfirmation) SetExternalCoreInformerFactory(f externalcoreinformers.SharedInformerFactory)

SetExternalCoreInformerFactory sets the external garden core informer factory.

func (*DeletionConfirmation) SetInternalCoreClientset added in v1.0.0

func (d *DeletionConfirmation) SetInternalCoreClientset(c internalversion.Interface)

SetInternalCoreClientset gets the clientset from the Kubernetes client.

func (*DeletionConfirmation) SetInternalCoreInformerFactory added in v1.0.0

func (d *DeletionConfirmation) SetInternalCoreInformerFactory(f coreinformers.SharedInformerFactory)

SetInternalCoreInformerFactory gets Lister from SharedInformerFactory.

func (*DeletionConfirmation) Validate

Validate makes admissions decisions based on deletion confirmation annotation.

func (*DeletionConfirmation) ValidateInitialization

func (d *DeletionConfirmation) ValidateInitialization() error

ValidateInitialization checks whether the plugin was correctly initialized.

Jump to

Keyboard shortcuts

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