Skip to content

Commit

Permalink
Added UT for reconcileDelete function
Browse files Browse the repository at this point in the history
  • Loading branch information
KeerthanaAP committed Nov 11, 2024
1 parent be3a1fd commit 3c3710e
Show file tree
Hide file tree
Showing 2 changed files with 801 additions and 3 deletions.
2 changes: 1 addition & 1 deletion controllers/ibmpowervscluster_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ func (r *IBMPowerVSClusterReconciler) reconcileDelete(ctx context.Context, clust

clusterScope.Info("Deleting VPC security group")
if err := clusterScope.DeleteVPCSecurityGroups(); err != nil {
allErrs = append(allErrs, errors.Wrapf(err, "failed to delete VPC subnet"))
allErrs = append(allErrs, errors.Wrapf(err, "failed to delete VPC security group"))
}

clusterScope.Info("Deleting VPC subnet")
Expand Down
Loading

0 comments on commit 3c3710e

Please sign in to comment.