Documentation ¶
Index ¶
- func NewFactory(_ io.Reader) (admission.Interface, error)
- func Register(plugins *admission.Plugins)
- type DeletionConfirmation
- func (d *DeletionConfirmation) Admit(_ context.Context, a admission.Attributes, _ admission.ObjectInterfaces) error
- func (d *DeletionConfirmation) AssignReadyFunc(f admission.ReadyFunc)
- func (d *DeletionConfirmation) SetCoreClientSet(c versioned.Interface)
- func (d *DeletionConfirmation) SetCoreInformerFactory(f gardencoreinformers.SharedInformerFactory)
- func (d *DeletionConfirmation) Validate(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error
- func (d *DeletionConfirmation) ValidateInitialization() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
NewFactory creates a new PluginFactory.
Types ¶
type DeletionConfirmation ¶
DeletionConfirmation contains an admission handler and listers.
func New ¶
func New() (*DeletionConfirmation, error)
New creates a new DeletionConfirmation admission plugin.
func (*DeletionConfirmation) Admit ¶ added in v1.95.0
func (d *DeletionConfirmation) Admit(_ context.Context, a admission.Attributes, _ admission.ObjectInterfaces) error
Admit maintains the deletion.gardener.cloud/confirmed-by annotation.
func (*DeletionConfirmation) AssignReadyFunc ¶
func (d *DeletionConfirmation) AssignReadyFunc(f admission.ReadyFunc)
AssignReadyFunc assigns the ready function to the admission handler.
func (*DeletionConfirmation) SetCoreClientSet ¶ added in v1.90.0
func (d *DeletionConfirmation) SetCoreClientSet(c versioned.Interface)
SetCoreClientSet gets the clientset from the Kubernetes client.
func (*DeletionConfirmation) SetCoreInformerFactory ¶ added in v1.90.0
func (d *DeletionConfirmation) SetCoreInformerFactory(f gardencoreinformers.SharedInformerFactory)
SetCoreInformerFactory 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.
Click to show internal directories.
Click to hide internal directories.