diff --git a/pkg/controller/service/servicecontroller.go b/pkg/controller/service/servicecontroller.go index 6a9066b257c..346001c73f7 100644 --- a/pkg/controller/service/servicecontroller.go +++ b/pkg/controller/service/servicecontroller.go @@ -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 }