Unverified Commit d79570ee authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #62608 from feiskyer/automated-cherry-pick-of-#62450-upstream-release-1.10

Automatic merge from submit-queue. Automated cherry pick of #62450: Ensure expected load balancer is selected for Azure Cherry pick of #62450 on release-1.10. #62450: Ensure expected load balancer is selected for Azure
parents 50b94362 a23d9b51
......@@ -188,7 +188,8 @@ func (az *Cloud) getServiceLoadBalancer(service *v1.Service, clusterName string,
// check if the service already has a load balancer
if existingLBs != nil {
for _, existingLB := range existingLBs {
for i := range existingLBs {
existingLB := existingLBs[i]
if strings.EqualFold(*existingLB.Name, defaultLBName) {
defaultLB = &existingLB
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment