func (r *HostPort) ValidateDelete() error {
	hostportlog.Info("validate delete", "name", r.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/log"
	"sigs.k8s.io/controller-runtime/pkg/webhook"
)
var hostportlog = logf.Log.WithName("hostport-resource")
func (r *HostPort) SetupWebhookWithManager(mgr ctrl.Manager) error {
	return ctrl.NewWebhookManagedBy(mgr).
		For(r).
		Complete()
}
var _ webhook.Defaulter = &HostPort{}
func (r *HostPort) Default() {
	hostportlog.Info("default", "name", r.Name)
}
var _ webhook.Validator = &HostPort{}
func (r *HostPort) ValidateCreate() error {
	hostportlog.Info("validate create", "name", r.Name)
	return nil
}
func (r *HostPort) ValidateUpdate(old runtime.Object) error {
	hostportlog.Info("validate update", "name", r.Name)
	return nil
}