From 5a988e3e302789c484d93014cc6291378ce5fa4b Mon Sep 17 00:00:00 2001 From: Paolo Dettori Date: Mon, 11 Mar 2024 20:22:16 -0400 Subject: [PATCH] remove constraint on single cp of type host Signed-off-by: Paolo Dettori --- pkg/reconcilers/host/reconciler.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pkg/reconcilers/host/reconciler.go b/pkg/reconcilers/host/reconciler.go index a846e89..1fa332d 100644 --- a/pkg/reconcilers/host/reconciler.go +++ b/pkg/reconcilers/host/reconciler.go @@ -51,11 +51,6 @@ func New(cl client.Client, scheme *runtime.Scheme, version string, clientSet *ku func (r *HostReconciler) Reconcile(ctx context.Context, hcp *tenancyv1alpha1.ControlPlane) (ctrl.Result, error) { _ = clog.FromContext(ctx) - // only one CP of type "host" can exist - if err := r.checkOnlyOneCPOfTypeHostExists(ctx, hcp); err != nil { - return r.UpdateStatusForSyncingError(hcp, err) - } - if err := r.BaseReconciler.ReconcileNamespace(ctx, hcp); err != nil { return r.UpdateStatusForSyncingError(hcp, err) }