Documentation ¶
Index ¶
Constants ¶
View Source
const (
// PluginName is the name of this admission plugin.
PluginName = "ControllerRegistrationResources"
)
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
NewFactory creates a new PluginFactory.
Types ¶
type Resources ¶
Resources contains an admission handler and listers.
func (*Resources) AssignReadyFunc ¶
AssignReadyFunc assigns the ready function to the admission handler.
func (*Resources) SetInternalCoreClientset ¶
func (r *Resources) SetInternalCoreClientset(c coreclientset.Interface)
SetInternalCoreClientset gets the clientset from the Kubernetes client.
func (*Resources) Validate ¶
func (r *Resources) Validate(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error
Validate makes admissions decisions based on the resources specified in a ControllerRegistration object. It does reject the request if there is any other existing ControllerRegistration object in the system that specifies the same resource kind/type combination like the incoming object.
func (*Resources) ValidateInitialization ¶
ValidateInitialization checks whether the plugin was correctly initialized.
Click to show internal directories.
Click to hide internal directories.