quotavalidator

package
v1.107.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 25 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(plugins *admission.Plugins)

Register registers a plugin.

Types

type QuotaValidator

type QuotaValidator struct {
	*admission.Handler
	// contains filtered or unexported fields
}

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) SetSecurityInformerFactory added in v1.98.0

func (q *QuotaValidator) SetSecurityInformerFactory(f securityinformers.SharedInformerFactory)

SetSecurityInformerFactory gets Lister from SharedInformerFactory.

func (*QuotaValidator) Validate

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL