extensionlabels

package
v1.43.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func NewFactory

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

NewFactory creates a new PluginFactory.

func Register

func Register(plugins *admission.Plugins)

Register registers a plugin.

Types

type ExtensionLabels

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

ExtensionLabels contains the admission handler

func New

func New() (*ExtensionLabels, error)

New creates a new ExtensionLabels admission plugin.

func (*ExtensionLabels) Admit

Admit add extension labels to resources.

func (*ExtensionLabels) AssignReadyFunc

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

AssignReadyFunc assigns the ready function to the admission handler.

func (*ExtensionLabels) SetInternalCoreInformerFactory

func (e *ExtensionLabels) SetInternalCoreInformerFactory(f internalcoreinformers.SharedInformerFactory)

SetInternalCoreInformerFactory sets the external garden core informer factory.

func (*ExtensionLabels) ValidateInitialization

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