Skip to content

Commit

Permalink
Print Service name and resource basename in ReconcileService() Adding…
Browse files Browse the repository at this point in the history
… such log shows relation between Service name and its related resource name (Frontend IP config, etc.). It helps debugging.

Signed-off-by: Zhecheng Li <zhechengli@microsoft.com>
  • Loading branch information
lzhecheng authored and k8s-infra-cherrypick-robot committed May 24, 2023
1 parent d5c0926 commit 718ce7a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/provider/azure_loadbalancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 718ce7a

Please sign in to comment.