Skip to content

Commit

Permalink
chore: add some debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
hrak committed Aug 15, 2024
1 parent 0447baf commit 379ea28
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions controllers/cloudstackisolatednetwork_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@ func (r *CloudStackIsoNetReconciliationRunner) Reconcile() (retRes ctrl.Result,
if r.FailureDomain.Spec.Zone.ID == "" {
return r.RequeueWithMessage("Zone ID not resolved yet.")
}
ports := []int{int(r.CSCluster.Spec.ControlPlaneEndpoint.Port)}
if len(r.CSCluster.Spec.APIServerLoadBalancer.AdditionalPorts) > 0 {
ports = append(ports, r.CSCluster.Spec.APIServerLoadBalancer.AdditionalPorts...)
}
r.Log.V(2).Info("ports list", "ports", ports)

if err := r.CSUser.GetOrCreateIsolatedNetwork(r.FailureDomain, r.ReconciliationSubject, r.CSCluster); err != nil {
return ctrl.Result{}, err
}
Expand Down

0 comments on commit 379ea28

Please sign in to comment.