servicecontroller: remove unused zone field

The zone field was unused, and this complicated e.g. #39996
pull/6/head
Justin Santa Barbara 2017-01-18 00:14:24 -05:00
parent 8911e2a377
commit 87da0e69d5
1 changed files with 0 additions and 10 deletions

View File

@ -84,7 +84,6 @@ type ServiceController struct {
kubeClient clientset.Interface
clusterName string
balancer cloudprovider.LoadBalancer
zone cloudprovider.Zone
cache *serviceCache
serviceLister corelisters.ServiceLister
serviceListerSynced cache.InformerSynced
@ -218,15 +217,6 @@ func (s *ServiceController) init() error {
}
s.balancer = balancer
zones, ok := s.cloud.Zones()
if !ok {
return fmt.Errorf("the cloud provider does not support zone enumeration, which is required for creating load balancers.")
}
zone, err := zones.GetZone()
if err != nil {
return fmt.Errorf("failed to get zone from cloud provider, will not be able to create load balancers: %v", err)
}
s.zone = zone
return nil
}