Documentation ¶
Index ¶
- Constants
- func NewFactory(config io.Reader) (admission.Interface, error)
- func Register(plugins *admission.Plugins)
- type DeletionConfirmation
- func (d *DeletionConfirmation) AssignReadyFunc(f admission.ReadyFunc)
- func (d *DeletionConfirmation) SetExternalCoreClientset(c externalcoreclientset.Interface)
- func (d *DeletionConfirmation) SetExternalCoreInformerFactory(f externalcoreinformers.SharedInformerFactory)
- func (d *DeletionConfirmation) SetInternalCoreClientset(c internalversion.Interface)
- func (d *DeletionConfirmation) SetInternalCoreInformerFactory(f coreinformers.SharedInformerFactory)
- func (d *DeletionConfirmation) Validate(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error
- func (d *DeletionConfirmation) ValidateInitialization() error
Constants ¶
View Source
const (
// PluginName is the name of this admission plugin.
PluginName = "DeletionConfirmation"
)
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) 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)
SetCoreClientset 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 ¶
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.