Documentation
¶
Index ¶
- type NodeMaintenanceWebhook
- func (r *NodeMaintenanceWebhook) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *NodeMaintenanceWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) (warnings admission.Warnings, err error)
- func (r *NodeMaintenanceWebhook) ValidateDelete(ctx context.Context, obj runtime.Object) (warnings admission.Warnings, err error)
- func (r *NodeMaintenanceWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (warnings admission.Warnings, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeMaintenanceWebhook ¶
NodeMaintenanceWebhook is webhook for NodeMaintenance
func NewNodeMaintenanceWebhook ¶
func NewNodeMaintenanceWebhook(kClient client.Client) *NodeMaintenanceWebhook
NewNodeMaintenanceWebhook creates a new NodeMaintenanceWebhook
func (*NodeMaintenanceWebhook) SetupWebhookWithManager ¶
func (r *NodeMaintenanceWebhook) SetupWebhookWithManager(mgr ctrl.Manager) error
SetupWebhookWithManager will setup the manager to manage the webhooks
func (*NodeMaintenanceWebhook) ValidateCreate ¶
func (r *NodeMaintenanceWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) (warnings admission.Warnings, err error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type
func (*NodeMaintenanceWebhook) ValidateDelete ¶
func (r *NodeMaintenanceWebhook) ValidateDelete(ctx context.Context, obj runtime.Object) (warnings admission.Warnings, err error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type
func (*NodeMaintenanceWebhook) ValidateUpdate ¶
func (r *NodeMaintenanceWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (warnings admission.Warnings, err error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type
Click to show internal directories.
Click to hide internal directories.