From 90bc941f17306b71beaacfa83b69f635b2950a89 Mon Sep 17 00:00:00 2001 From: Zhecheng Li Date: Wed, 24 May 2023 05:30:16 +0000 Subject: [PATCH] Print Service name and resource basename in ReconcileService() Adding such log shows relation between Service name and its related resource name (Frontend IP config, etc.). It helps debugging. Signed-off-by: Zhecheng Li --- pkg/provider/azure_loadbalancer.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/provider/azure_loadbalancer.go b/pkg/provider/azure_loadbalancer.go index 6c51a1c3df..e3b5adba85 100644 --- a/pkg/provider/azure_loadbalancer.go +++ b/pkg/provider/azure_loadbalancer.go @@ -140,6 +140,9 @@ func (az *Cloud) reconcileService(ctx context.Context, clusterName string, servi return nil, err } + resourceBaseName := az.GetLoadBalancerName(context.TODO(), "", service) + klog.V(2).Infof("reconcileService: Start reconciling Service %q with its resource basename %q", serviceName, resourceBaseName) + lbStatus, fipConfig, err := az.getServiceLoadBalancerStatus(service, lb) if err != nil { klog.Errorf("getServiceLoadBalancerStatus(%s) failed: %v", serviceName, err)