Documentation ¶
Index ¶
- Constants
- func NewFactory(config io.Reader) (admission.Interface, error)
- func Register(plugins *admission.Plugins)
- type ExtensionLabels
- func (e *ExtensionLabels) Admit(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error
- func (e *ExtensionLabels) AssignReadyFunc(f admission.ReadyFunc)
- func (e *ExtensionLabels) SetInternalCoreInformerFactory(f internalcoreinformers.SharedInformerFactory)
- func (e *ExtensionLabels) ValidateInitialization() error
Constants ¶
View Source
const (
// PluginName is the name of this admission plugin.
PluginName = "ExtensionLabels"
)
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
NewFactory creates a new PluginFactory.
Types ¶
type ExtensionLabels ¶
ExtensionLabels contains the admission handler
func (*ExtensionLabels) Admit ¶
func (e *ExtensionLabels) Admit(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error
Admit adds 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.
Click to show internal directories.
Click to hide internal directories.