Documentation
¶
Index ¶
- func SetupServiceWebhookWithManager(mgr ctrl.Manager) error
- type ServiceCustomValidator
- func (v *ServiceCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *ServiceCustomValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
- func (v *ServiceCustomValidator) ValidateUpdate(_ context.Context, _, _ runtime.Object) (admission.Warnings, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupServiceWebhookWithManager ¶
SetupServiceWebhookWithManager registers the webhook for Service in the manager.
Types ¶
type ServiceCustomValidator ¶
type ServiceCustomValidator struct {
// contains filtered or unexported fields
}
ServiceCustomValidator struct is responsible for validating the Knative Service resource when it is created, updated, or deleted.
NOTE: The +kubebuilder:object:generate=false marker prevents controller-gen from generating DeepCopy methods, as this struct is used only for temporary operations and does not need to be deeply copied.
func (*ServiceCustomValidator) ValidateCreate ¶
func (v *ServiceCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the Knative type Service.
func (*ServiceCustomValidator) ValidateDelete ¶
func (v *ServiceCustomValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the Knative type Service.
func (*ServiceCustomValidator) ValidateUpdate ¶
func (v *ServiceCustomValidator) ValidateUpdate(_ context.Context, _, _ runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the Knative type Service.