Back to / plugin / pkg / global / deletionconfirmation

Package deletionconfirmation

Latest Go to latest
Published: Jul 9, 2020 | Licenses: Apache-2.0 , BSD-2-Clause , MIT , MPL-2.0 | Module:


Package Files


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

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.

type DeletionConfirmation

type DeletionConfirmation struct {
	// 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) SetInternalCoreClientset

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

SetInternalCoreClientset gets the clientset from the Kubernetes client.

func (*DeletionConfirmation) SetInternalCoreInformerFactory

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

SetInternalCoreInformerFactory gets Lister from SharedInformerFactory.

func (*DeletionConfirmation) Validate

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

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.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier