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