From f7e7d3035ddd9b0eb4d750ed303e171d1c8a3457 Mon Sep 17 00:00:00 2001 From: Khaja Omer Date: Wed, 3 Apr 2024 10:19:51 -0500 Subject: [PATCH] fix --- controller/linodecluster_controller.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/controller/linodecluster_controller.go b/controller/linodecluster_controller.go index 525d2db77..b32f0f101 100644 --- a/controller/linodecluster_controller.go +++ b/controller/linodecluster_controller.go @@ -123,15 +123,15 @@ func (r *LinodeClusterReconciler) reconcile( } }() - if err := clusterScope.AddFinalizer(ctx); err != nil { - return res, err - } - // Handle deleted clusters if !clusterScope.LinodeCluster.DeletionTimestamp.IsZero() { return res, r.reconcileDelete(ctx, logger, clusterScope) } + if err := clusterScope.AddFinalizer(ctx); err != nil { + return res, err + } + // Create if clusterScope.LinodeCluster.Spec.ControlPlaneEndpoint.Host == "" { if err := r.reconcileCreate(ctx, logger, clusterScope); err != nil {