Documentation ¶
Index ¶
- Constants
- func Register(plugins *admission.Plugins)
- type QuotaValidator
- func (q *QuotaValidator) AssignReadyFunc(f admission.ReadyFunc)
- func (q *QuotaValidator) SetInternalCoreInformerFactory(f coreinformers.SharedInformerFactory)
- func (q *QuotaValidator) Validate(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error
- func (q *QuotaValidator) ValidateInitialization() error
Constants ¶
View Source
const (
// PluginName is the name of this admission plugin.
PluginName = "ShootQuotaValidator"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type QuotaValidator ¶
QuotaValidator contains listers and and admission handler.
func New ¶
func New(time utiltime.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) SetInternalCoreInformerFactory ¶ added in v1.0.0
func (q *QuotaValidator) SetInternalCoreInformerFactory(f coreinformers.SharedInformerFactory)
SetInternalCoreInformerFactory gets Lister from SharedInformerFactory.
func (*QuotaValidator) Validate ¶
func (q *QuotaValidator) Validate(ctx context.Context, a admission.Attributes, o 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.