Documentation ¶
Index ¶
- func Register(plugins *admission.Plugins)
- type QuotaValidator
- func (q *QuotaValidator) AssignReadyFunc(f admission.ReadyFunc)
- func (q *QuotaValidator) SetCoreInformerFactory(f gardencoreinformers.SharedInformerFactory)
- func (q *QuotaValidator) Validate(_ context.Context, a admission.Attributes, _ admission.ObjectInterfaces) error
- func (q *QuotaValidator) ValidateInitialization() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type QuotaValidator ¶
QuotaValidator contains listers and admission handler.
func New ¶
func New(time timeutils.Ops) (*QuotaValidator, error)
New creates a new QuotaValidator admission plugin.
func (*QuotaValidator) AssignReadyFunc ¶
func (q *QuotaValidator) AssignReadyFunc(f admission.ReadyFunc)
AssignReadyFunc assigns the ready function to the admission handler.
func (*QuotaValidator) SetCoreInformerFactory ¶ added in v1.90.0
func (q *QuotaValidator) SetCoreInformerFactory(f gardencoreinformers.SharedInformerFactory)
SetCoreInformerFactory gets Lister from SharedInformerFactory.
func (*QuotaValidator) Validate ¶
func (q *QuotaValidator) Validate(_ context.Context, a admission.Attributes, _ admission.ObjectInterfaces) error
Validate checks that the requested Shoot resources do not exceed the quota limits.
func (*QuotaValidator) ValidateInitialization ¶
func (q *QuotaValidator) ValidateInitialization() error
ValidateInitialization checks whether the plugin was correctly initialized.
Click to show internal directories.
Click to hide internal directories.