From 379ea2884acf71f790943dfde79ed00965a2d832 Mon Sep 17 00:00:00 2001 From: Hans Rakers Date: Thu, 15 Aug 2024 12:12:17 +0200 Subject: [PATCH] chore: add some debug info --- controllers/cloudstackisolatednetwork_controller.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/controllers/cloudstackisolatednetwork_controller.go b/controllers/cloudstackisolatednetwork_controller.go index ecd433b8..c4d8342c 100644 --- a/controllers/cloudstackisolatednetwork_controller.go +++ b/controllers/cloudstackisolatednetwork_controller.go @@ -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 }