tolerationrestriction

package
v1.20.2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2021 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 22 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func LoadConfiguration

func LoadConfiguration(config io.Reader) (*shoottolerationrestriction.Configuration, error)

LoadConfiguration loads the provided configuration.

func Register

func Register(plugins *admission.Plugins)

Register registers a plugin.

Types

type TolerationRestriction

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

TolerationRestriction contains listers and admission handler.

func New

New creates a new TolerationRestriction admission plugin.

func (*TolerationRestriction) Admit

Admit defaults shoot tolerations with both global and project defaults.

func (*TolerationRestriction) AssignReadyFunc

func (t *TolerationRestriction) AssignReadyFunc(f admission.ReadyFunc)

AssignReadyFunc assigns the ready function to the admission handler.

func (*TolerationRestriction) SetInternalCoreInformerFactory

func (t *TolerationRestriction) SetInternalCoreInformerFactory(f coreinformers.SharedInformerFactory)

SetInternalCoreInformerFactory sets the internal garden core informer factory.

func (*TolerationRestriction) Validate

Validate makes admissions decisions based on the allowed project tolerations or globally allowed tolerations.

func (*TolerationRestriction) ValidateInitialization

func (t *TolerationRestriction) 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