Version: v1.50.1 Latest Latest

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

Go to latest
Published: Jul 5, 2022 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 21 Imported by: 0




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


This section is empty.


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.


type TolerationRestriction

type TolerationRestriction struct {
	// 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