diff --git a/controllers/externalclusterreference_controller.go b/controllers/externalclusterreference_controller.go index 1c1e96f..db22427 100644 --- a/controllers/externalclusterreference_controller.go +++ b/controllers/externalclusterreference_controller.go @@ -13,8 +13,10 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/types" "k8s.io/client-go/tools/clientcmd" + "k8s.io/utils/ptr" ctrl "sigs.k8s.io/controller-runtime" "sigs.k8s.io/controller-runtime/pkg/client" + "sigs.k8s.io/controller-runtime/pkg/controller" "sigs.k8s.io/controller-runtime/pkg/event" "sigs.k8s.io/controller-runtime/pkg/handler" ctrllog "sigs.k8s.io/controller-runtime/pkg/log" @@ -205,6 +207,9 @@ func (p *PushKamajiChange) Reconcile(ctx context.Context, request reconcile.Requ //nolint:wrapcheck func (p *PushKamajiChange) SetupWithManager(mgr ctrl.Manager) error { return ctrl.NewControllerManagedBy(mgr). + WithOptions(controller.Options{ + SkipNameValidation: ptr.To(true), + }). For(&kamajiv1alpha1.TenantControlPlane{}). Complete(p) }