Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
komer3 committed Apr 3, 2024
1 parent 3aaab53 commit f7e7d30
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions controller/linodecluster_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f7e7d30

Please sign in to comment.