Documentation
¶
Index ¶
- func SetupVRFWebhookWithManager(mgr ctrl.Manager) error
- type VRFCustomValidator
- func (v *VRFCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *VRFCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *VRFCustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupVRFWebhookWithManager ¶
SetupVRFWebhookWithManager registers the webhook for VRF in the manager.
Types ¶
type VRFCustomValidator ¶
type VRFCustomValidator struct{}
VRFCustomValidator struct is responsible for validating the VRF resource when it is created, updated, or deleted.
func (*VRFCustomValidator) ValidateCreate ¶
func (v *VRFCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type VRF.
func (*VRFCustomValidator) ValidateDelete ¶
func (v *VRFCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type VRF.
func (*VRFCustomValidator) ValidateUpdate ¶
func (v *VRFCustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type VRF.
Click to show internal directories.
Click to hide internal directories.