extensionvalidation

package
v1.105.2 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory(_ io.Reader) (admission.Interface, error)

NewFactory creates a new PluginFactory.

func Register

func Register(plugins *admission.Plugins)

Register registers a plugin.

Types

type ExtensionValidator

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

ExtensionValidator contains listers and admission handler.

func New

func New() (*ExtensionValidator, error)

New creates a new ExtensionValidator admission plugin.

func (*ExtensionValidator) AssignReadyFunc

func (e *ExtensionValidator) AssignReadyFunc(f admission.ReadyFunc)

AssignReadyFunc assigns the ready function to the admission handler.

func (*ExtensionValidator) SetCoreInformerFactory added in v1.90.0

func (e *ExtensionValidator) SetCoreInformerFactory(f gardencoreinformers.SharedInformerFactory)

SetCoreInformerFactory gets Lister from SharedInformerFactory.

func (*ExtensionValidator) Validate

Validate makes admissions decisions based on the extension types.

func (*ExtensionValidator) ValidateInitialization

func (e *ExtensionValidator) 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