validator

package
v1.7.1-0...-23dd39d Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 26 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func Register

func Register(plugins *admission.Plugins)

Register registers a plugin.

Types

type ManagedSeed

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

ManagedSeed contains listers and and admission handler.

func New

func New() (*ManagedSeed, error)

New creates a new ManagedSeed admission plugin.

func (*ManagedSeed) Admit

Admit validates and if appropriate mutates the given managed seed against the shoot that it references.

func (*ManagedSeed) AssignReadyFunc

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

AssignReadyFunc assigns the ready function to the admission handler.

func (*ManagedSeed) SetInternalCoreClientset

func (v *ManagedSeed) SetInternalCoreClientset(c coreclientset.Interface)

SetInternalCoreClientset sets the garden core clientset.

func (*ManagedSeed) SetInternalCoreInformerFactory

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

SetInternalCoreInformerFactory gets Lister from SharedInformerFactory.

func (*ManagedSeed) SetKubeInformerFactory

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

SetKubeInformerFactory gets Lister from SharedInformerFactory.

func (*ManagedSeed) SetSeedManagementClientset

func (v *ManagedSeed) SetSeedManagementClientset(c seedmanagementclientset.Interface)

SetSeedManagementClientset sets the garden seedmanagement clientset.

func (*ManagedSeed) ValidateInitialization

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