Skip to content

Commit

Permalink
Merge pull request #59277 from brendandburns/automated-cherry-pick-of…
Browse files Browse the repository at this point in the history
…-#59083-upstream-release-1.9

Automatic merge from submit-queue.

Automated cherry pick of #59083: Ensure IP is set for Azure internal loadbalancer

Cherry pick of #59083 on release-1.9.

#59083: Ensure IP is set for Azure internal loadbalancer
  • Loading branch information
Kubernetes Submit Queue authored Feb 6, 2018
2 parents 5fe68e8 + 5647f0e commit ac1d59b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pkg/cloudprovider/providers/azure/azure_loadbalancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -756,6 +756,19 @@ func (az *Cloud) reconcileLoadBalancer(clusterName string, service *v1.Service,
glog.V(2).Infof("ensure(%s) abort backoff: lb(%s) - updating", serviceName, lbName)
return nil, err
}

if isInternal {
// Refresh updated lb which will be used later in other places.
newLB, exist, err := az.getAzureLoadBalancer(lbName)
if err != nil {
glog.V(2).Infof("getAzureLoadBalancer(%s) failed: %v", lbName, err)
return nil, err
}
if !exist {
return nil, fmt.Errorf("load balancer %q not found", lbName)
}
lb = &newLB
}
}
}

Expand Down

0 comments on commit ac1d59b

Please sign in to comment.