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: 34 Imported by: 3




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


This section is empty.


func Register

func Register(plugins *admission.Plugins)

Register registers a plugin.


type ValidateShoot

type ValidateShoot struct {
	// contains filtered or unexported fields

ValidateShoot contains listers and and admission handler.

func New

func New() (*ValidateShoot, error)

New creates a new ValidateShoot admission plugin.

func (*ValidateShoot) Admit

Admit validates the Shoot details against the referenced CloudProfile.

func (*ValidateShoot) AssignReadyFunc

func (v *ValidateShoot) AssignReadyFunc(f admission.ReadyFunc)

AssignReadyFunc assigns the ready function to the admission handler.

func (*ValidateShoot) SetExternalCoreInformerFactory added in v1.44.0

func (v *ValidateShoot) SetExternalCoreInformerFactory(f externalcoreinformers.SharedInformerFactory)

SetExternalCoreInformerFactory sets the external garden core informer factory.

func (*ValidateShoot) SetInternalCoreInformerFactory added in v1.0.0

func (v *ValidateShoot) SetInternalCoreInformerFactory(f coreinformers.SharedInformerFactory)

SetInternalCoreInformerFactory gets Lister from SharedInformerFactory.

func (*ValidateShoot) ValidateInitialization

func (v *ValidateShoot) ValidateInitialization() error

ValidateInitialization checks whether the plugin was correctly initialized.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL