validator

package
v1.41.5 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2022 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 12 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func Register

func Register(plugins *admission.Plugins)

Register registers a plugin.

Types

type ValidateSeed

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

ValidateSeed contains listers and and admission handler.

func New

func New() (*ValidateSeed, error)

New creates a new ValidateSeed admission plugin.

func (*ValidateSeed) AssignReadyFunc

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

AssignReadyFunc assigns the ready function to the admission handler.

func (*ValidateSeed) SetInternalCoreInformerFactory

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

SetInternalCoreInformerFactory gets Lister from SharedInformerFactory.

func (*ValidateSeed) Validate

Validate validates the Seed details against existing Shoots and BackupBuckets

func (*ValidateSeed) ValidateInitialization

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