tolerationrestriction

package
v1.95.2 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

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) SetCoreInformerFactory added in v1.90.0

SetCoreInformerFactory 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