quotavalidator

package
v0.0.0-...-be4dc66 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2019 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 15 Imported by: 0

Documentation

Index

Constants

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

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 and admission handler.

func New

func New() (*QuotaValidator, error)

New creates a new QuotaValidator admission plugin.

func (*QuotaValidator) Admit

Admit checks that the requested Shoot resources are within the quota limits.

func (*QuotaValidator) AssignReadyFunc

func (q *QuotaValidator) AssignReadyFunc(f admission.ReadyFunc)

AssignReadyFunc assigns the ready function to the admission handler.

func (*QuotaValidator) SetInternalGardenInformerFactory

func (q *QuotaValidator) SetInternalGardenInformerFactory(f informers.SharedInformerFactory)

SetInternalGardenInformerFactory gets Lister from SharedInformerFactory.

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