Documentation ¶
Index ¶
- func NewFactory(_ io.Reader) (admission.Interface, error)
- func Register(plugins *admission.Plugins)
- type ExtensionValidator
- func (e *ExtensionValidator) AssignReadyFunc(f admission.ReadyFunc)
- func (e *ExtensionValidator) SetCoreInformerFactory(f gardencoreinformers.SharedInformerFactory)
- func (e *ExtensionValidator) Validate(_ context.Context, a admission.Attributes, _ admission.ObjectInterfaces) error
- func (e *ExtensionValidator) ValidateInitialization() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
NewFactory creates a new PluginFactory.
Types ¶
type ExtensionValidator ¶
ExtensionValidator contains listers and admission handler.
func New ¶
func New() (*ExtensionValidator, error)
New creates a new ExtensionValidator admission plugin.
func (*ExtensionValidator) AssignReadyFunc ¶
func (e *ExtensionValidator) AssignReadyFunc(f admission.ReadyFunc)
AssignReadyFunc assigns the ready function to the admission handler.
func (*ExtensionValidator) SetCoreInformerFactory ¶ added in v1.90.0
func (e *ExtensionValidator) SetCoreInformerFactory(f gardencoreinformers.SharedInformerFactory)
SetCoreInformerFactory gets Lister from SharedInformerFactory.
func (*ExtensionValidator) Validate ¶
func (e *ExtensionValidator) Validate(_ context.Context, a admission.Attributes, _ admission.ObjectInterfaces) error
Validate makes admissions decisions based on the extension types.
func (*ExtensionValidator) ValidateInitialization ¶
func (e *ExtensionValidator) ValidateInitialization() error
ValidateInitialization checks whether the plugin was correctly initialized.
Click to show internal directories.
Click to hide internal directories.