Skip to content

Commit

Permalink
chore: add some more debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
hrak committed Aug 15, 2024
1 parent 379ea28 commit ba2c502
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controllers/cloudstackisolatednetwork_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,11 @@ func (r *CloudStackIsoNetReconciliationRunner) Reconcile() (retRes ctrl.Result,
}
r.Log.V(2).Info("ports list", "ports", ports)

r.Log.V(2).Info("isonet LoadBalancerRuleIDs before", "loadBalancerRuleIDs", r.ReconciliationSubject.Status.LoadBalancerRuleIDs)
if err := r.CSUser.GetOrCreateIsolatedNetwork(r.FailureDomain, r.ReconciliationSubject, r.CSCluster); err != nil {
return ctrl.Result{}, err
}
r.Log.V(2).Info("isonet LoadBalancerRuleIDs after", "loadBalancerRuleIDs", r.ReconciliationSubject.Status.LoadBalancerRuleIDs)
// Tag the created network.
if err := r.CSUser.AddClusterTag(cloud.ResourceTypeNetwork, r.ReconciliationSubject.Spec.ID, r.CSCluster); err != nil {
return ctrl.Result{}, errors.Wrapf(err, "tagging network with id %s", r.ReconciliationSubject.Spec.ID)
Expand Down

0 comments on commit ba2c502

Please sign in to comment.