Documentation ¶
Index ¶
- Constants
- func NewFactory(_ io.Reader) (admission.Interface, error)
- func Register(plugins *admission.Plugins)
- type ExtensionValidator
- func (e *ExtensionValidator) AssignReadyFunc(f admission.ReadyFunc)
- func (e *ExtensionValidator) SetInternalCoreInformerFactory(f gardencoreinformers.SharedInformerFactory)
- func (e *ExtensionValidator) Validate(_ context.Context, a admission.Attributes, _ admission.ObjectInterfaces) error
- func (e *ExtensionValidator) ValidateInitialization() error
Constants ¶
View Source
const (
// PluginName is the name of this admission plugin.
PluginName = "ExtensionValidator"
)
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) SetInternalCoreInformerFactory ¶ added in v1.65.0
func (e *ExtensionValidator) SetInternalCoreInformerFactory(f gardencoreinformers.SharedInformerFactory)
SetInternalCoreInformerFactory 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.