func (r *Presto) ValidateUpdate(old runtime.Object) error {
	log.Info("validate update", "name", r.Name)
	return r.validatePrestoUpdate(old)
}
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
package v1alpha1
import (
	apierrors "k8s.io/apimachinery/pkg/api/errors"
	"k8s.io/apimachinery/pkg/runtime"
	"k8s.io/apimachinery/pkg/runtime/schema"
	"k8s.io/apimachinery/pkg/util/validation/field"
	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("webhooklog")
func (r *Presto) SetupWebhookWithManager(mgr ctrl.Manager) error {
	return ctrl.NewWebhookManagedBy(mgr).
		For(r).
		Complete()
}
var _ webhook.Validator = &Presto{}
func (r *Presto) ValidateCreate() error {
	log.Info("validate create", "name", r.Name)
	return nil
}