func (r *HcloudMachine) ValidateCreate() error {
	return validateHcloudMachineSpec(r)
}
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
package v1alpha3
import (
	"fmt"
	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"
	"sigs.k8s.io/controller-runtime/pkg/webhook"
)
func (r *HcloudMachine) SetupWebhookWithManager(mgr ctrl.Manager) error {
	return ctrl.NewWebhookManagedBy(mgr).
		For(r).
		Complete()
}
func (r *HcloudMachineList) SetupWebhookWithManager(mgr ctrl.Manager) error {
	return ctrl.NewWebhookManagedBy(mgr).
		For(r).
		Complete()
}
var _ webhook.Validator = &HcloudMachine{}
type hcloudMachineSpecer interface {
	GroupVersionKind() schema.GroupVersionKind
	GetName() string
	HcloudMachineSpec() *HcloudMachineSpec
}