Skip to content

Commit d61297d

Browse files
authored
Fix VPC cluster reconcileV2 delete flow (#2438)
1 parent 7fba650 commit d61297d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

controllers/ibmvpccluster_controller.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,10 @@ func (r *IBMVPCClusterReconciler) reconcileDelete(clusterScope *scope.ClusterSco
371371
return handleFinalizerRemoval(clusterScope)
372372
}
373373

374-
func (r *IBMVPCClusterReconciler) reconcileDeleteV2(_ *scope.VPCClusterScope) (ctrl.Result, error) {
375-
return ctrl.Result{}, fmt.Errorf("not implemented")
374+
func (r *IBMVPCClusterReconciler) reconcileDeleteV2(clusterScope *scope.VPCClusterScope) (ctrl.Result, error) { //nolint:unparam
375+
clusterScope.Info("Delete cluster is not implemented for reconcile v2")
376+
controllerutil.RemoveFinalizer(clusterScope.IBMVPCCluster, infrav1.ClusterFinalizer)
377+
return ctrl.Result{}, nil
376378
}
377379

378380
func (r *IBMVPCClusterReconciler) getOrCreate(clusterScope *scope.ClusterScope) (*vpcv1.LoadBalancer, error) {

0 commit comments

Comments
 (0)