func (cluster *FlinkCluster) ValidateDelete() error {
	log.Info("validate delete", "name", cluster.Name)
	return nil
}
ValidateDelete implements webhook.Validator so a webhook will be registered
for the type.
package v1alpha1
import (
	"k8s.io/apimachinery/pkg/runtime"
	ctrl "sigs.k8s.io/controller-runtime"
	logf "sigs.k8s.io/controller-runtime/pkg/runtime/log"
	"sigs.k8s.io/controller-runtime/pkg/webhook"
)
var log = logf.Log.WithName("webhook")
func (cluster *FlinkCluster) SetupWebhookWithManager(mgr ctrl.Manager) error {
	return ctrl.NewWebhookManagedBy(mgr).
		For(cluster).
		Complete()
}
var _ webhook.Defaulter = &FlinkCluster{}
func (cluster *FlinkCluster) Default() {
	log.Info("default", "name", cluster.Name, "original", *cluster)
	_SetDefault(cluster)
	log.Info("default", "name", cluster.Name, "augmented", *cluster)
}
var _ webhook.Validator = &FlinkCluster{}
var validator = Validator{}
func (cluster *FlinkCluster) ValidateCreate() error {
	log.Info("Validate create", "name", cluster.Name)
	return validator.ValidateCreate(cluster)
}
func (cluster *FlinkCluster) ValidateUpdate(old runtime.Object) error {
	log.Info("Validate update", "name", cluster.Name)
	var oldCluster = old.(*FlinkCluster)
	return validator.ValidateUpdate(oldCluster, cluster)
}