quotavalidator

package
v0.0.0-...-133fb1b Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

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 RejectShootIfQuotaExceeded

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

RejectShootIfQuotaExceeded contains listers and and admission handler.

func New

New creates a new RejectShootIfQuotaExceeded admission plugin.

func (*RejectShootIfQuotaExceeded) Admit

Admit ensures that the object in-flight is of kind Shoot. In addition it checks that the request resources are within the quota limits.

func (*RejectShootIfQuotaExceeded) SetInternalGardenInformerFactory

func (h *RejectShootIfQuotaExceeded) SetInternalGardenInformerFactory(f informers.SharedInformerFactory)

SetInternalGardenInformerFactory gets Lister from SharedInformerFactory.

func (*RejectShootIfQuotaExceeded) ValidateInitialization

func (h *RejectShootIfQuotaExceeded) 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