diff --git a/internal/controllers/kubelb/envoy_cp_controller.go b/internal/controllers/kubelb/envoy_cp_controller.go index 7cbb2dd..56213b6 100644 --- a/internal/controllers/kubelb/envoy_cp_controller.go +++ b/internal/controllers/kubelb/envoy_cp_controller.go @@ -178,11 +178,14 @@ func (r *EnvoyCPReconciler) ListLoadBalancersAndRoutes(ctx context.Context, req return nil, nil, err } } - + log.Info("Found load balancers", "count", len(loadBalancers.Items)) lbs := make([]kubelbv1alpha1.LoadBalancer, 0, len(loadBalancers.Items)) for _, lb := range loadBalancers.Items { if lb.DeletionTimestamp.IsZero() && controllerutil.ContainsFinalizer(&lb, CleanupFinalizer) { + log.Info("Adding load balancer", "name", lb.Name, "namespace", lb.Namespace) lbs = append(lbs, lb) + } else { + log.Info("Ignoring load balancer", "name", lb.Name, "namespace", lb.Namespace) } }