Skip to content

Commit

Permalink
chore: add debug
Browse files Browse the repository at this point in the history
  • Loading branch information
hrak committed Aug 16, 2024
1 parent cc85f46 commit 852951d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions controllers/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ func CloudStackIsolatedNetworkToControlPlaneCloudStackMachines(c client.Client,
log.Error(err, "CloudStackIsolatedNetwork is missing cluster name label or cluster does not exist, skipping mapping.")
}

log.V(4).Info("Looking up isolated network members with control plane label", "cluster", klog.KRef(csIsoNet.Namespace, clusterName))
machineList := &clusterv1.MachineList{}
machineList.SetGroupVersionKind(gvk)
// list all the requested objects within the cluster namespace with the cluster name and control plane label.
Expand All @@ -252,6 +253,8 @@ func CloudStackIsolatedNetworkToControlPlaneCloudStackMachines(c client.Client,
return nil
}

log.V(4).Info("Looked up members with control plane label", "found", len(machineList.Items))

mapFunc := util.MachineToInfrastructureMapFunc(gvk)
var results []ctrl.Request
for _, machine := range machineList.Items {
Expand Down

0 comments on commit 852951d

Please sign in to comment.