Documentation ¶
Index ¶
- Constants
- func NewFactory(config io.Reader) (admission.Interface, error)
- func Register(plugins *admission.Plugins)
- type ValidateShootStateDeletion
- func (d *ValidateShootStateDeletion) AssignReadyFunc(f admission.ReadyFunc)
- func (d *ValidateShootStateDeletion) SetExternalCoreInformerFactory(f externalcoreinformers.SharedInformerFactory)
- func (d *ValidateShootStateDeletion) SetInternalCoreClientset(c coreclientset.Interface)
- func (d *ValidateShootStateDeletion) Validate(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error
- func (d *ValidateShootStateDeletion) ValidateInitialization() error
Constants ¶
View Source
const (
// PluginName is the name of this admission plugin.
PluginName = "ShootStateDeletionValidator"
)
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
NewFactory creates a new PluginFactory.
Types ¶
type ValidateShootStateDeletion ¶
type ValidateShootStateDeletion struct { *admission.Handler // contains filtered or unexported fields }
ValidateShootStateDeletion contains listers and admission handler.
func New ¶
func New() (*ValidateShootStateDeletion, error)
New creates a new ShootStateDeletion admission plugin.
func (*ValidateShootStateDeletion) AssignReadyFunc ¶
func (d *ValidateShootStateDeletion) AssignReadyFunc(f admission.ReadyFunc)
AssignReadyFunc assigns the ready function to the admission handler.
func (*ValidateShootStateDeletion) SetExternalCoreInformerFactory ¶
func (d *ValidateShootStateDeletion) SetExternalCoreInformerFactory(f externalcoreinformers.SharedInformerFactory)
SetExternalCoreInformerFactory sets the external garden core informer factory.
func (*ValidateShootStateDeletion) SetInternalCoreClientset ¶
func (d *ValidateShootStateDeletion) SetInternalCoreClientset(c coreclientset.Interface)
SetInternalCoreClientset sets the garden core clientset.
func (*ValidateShootStateDeletion) Validate ¶
func (d *ValidateShootStateDeletion) Validate(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error
Validate makes admissions decisions based on deletion confirmation annotation.
func (*ValidateShootStateDeletion) ValidateInitialization ¶
func (d *ValidateShootStateDeletion) ValidateInitialization() error
ValidateInitialization checks whether the plugin was correctly initialized.
Click to show internal directories.
Click to hide internal directories.