Back to godoc.org
github.com/gardener/gardener / plugin / pkg / shoot / quotavalidator

Package quotavalidator

v1.7.1
Latest Go to latest
Published: Jul 9, 2020 | Licenses: Apache-2.0 , BSD-2-Clause , MIT , MPL-2.0 | Module: github.com/gardener/gardener

Index

Package Files

Constants

const (
	// PluginName is the name of this admission plugin.
	PluginName = "ShootQuotaValidator"
)

func Register

func Register(plugins *admission.Plugins)

Register registers a plugin.

type QuotaValidator

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

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

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.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier