validator

package
v1.90.7 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 40 Imported by: 3

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 ValidateShoot

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

ValidateShoot contains listers 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) SetAuthorizer added in v1.54.0

func (v *ValidateShoot) SetAuthorizer(authorizer authorizer.Authorizer)

SetAuthorizer gets the authorizer.

func (*ValidateShoot) SetCoreInformerFactory added in v1.90.0

func (v *ValidateShoot) SetCoreInformerFactory(f gardencoreinformers.SharedInformerFactory)

SetCoreInformerFactory gets Lister from SharedInformerFactory.

func (*ValidateShoot) SetKubeInformerFactory added in v1.75.0

func (v *ValidateShoot) SetKubeInformerFactory(f kubeinformers.SharedInformerFactory)

SetKubeInformerFactory gets Lister from SharedInformerFactory.

func (*ValidateShoot) ValidateInitialization

func (v *ValidateShoot) 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