Revert #7145 now that #7609 is in, and fix the tests that were relying on it.

This commit is contained in:
Alex Robinson
2015-05-01 10:48:28 -07:00
parent cadfde0bd1
commit 890ff7b4aa
3 changed files with 18 additions and 23 deletions

View File

@@ -438,7 +438,7 @@ func needsUpdate(oldService *api.Service, newService *api.Service) bool {
}
func (s *ServiceController) loadBalancerName(service *api.Service) string {
return cloudprovider.GetLoadBalancerName(service)
return cloudprovider.GetLoadBalancerName(s.clusterName, service.Namespace, service.Name)
}
func getTCPPorts(service *api.Service) ([]int, error) {
@@ -571,7 +571,7 @@ func (s *ServiceController) lockedUpdateLoadBalancerHosts(service *api.Service,
return nil
}
name := cloudprovider.GetLoadBalancerName(service)
name := s.loadBalancerName(service)
err := s.balancer.UpdateTCPLoadBalancer(name, s.zone.Region, hosts)
if err == nil {
return nil