mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
Merge pull request #90280 from gaurav1086/azure_lb_remove_unncessary_check
[Provider/Azure] remove unncessary nil check for range
This commit is contained in:
commit
32540b0eaa
@ -265,7 +265,6 @@ func (az *Cloud) getServiceLoadBalancer(service *v1.Service, clusterName string,
|
||||
}
|
||||
|
||||
// check if the service already has a load balancer
|
||||
if existingLBs != nil {
|
||||
for i := range existingLBs {
|
||||
existingLB := existingLBs[i]
|
||||
if strings.EqualFold(*existingLB.Name, defaultLBName) {
|
||||
@ -285,7 +284,6 @@ func (az *Cloud) getServiceLoadBalancer(service *v1.Service, clusterName string,
|
||||
|
||||
return &existingLB, status, true, nil
|
||||
}
|
||||
}
|
||||
|
||||
hasMode, _, _ := getServiceLoadBalancerMode(service)
|
||||
if az.useStandardLoadBalancer() && hasMode {
|
||||
|
Loading…
Reference in New Issue
Block a user