Merge pull request #1608 from chrismoos/fix_svc_cluster_ip

Fix issue with clusterIP detection on service upstream. #1534
This commit is contained in:
Manuel Alejandro de Brito Fontes 2017-10-26 21:12:53 -03:00 committed by GitHub
commit 7a8b98b721

View file

@ -819,7 +819,7 @@ func (ic *GenericController) getServiceClusterEndpoint(svcKey string, backend *e
}
svc := svcObj.(*apiv1.Service)
if svc.Spec.ClusterIP == "" {
if svc.Spec.ClusterIP == "" || svc.Spec.ClusterIP == "None" {
return endpoint, fmt.Errorf("No ClusterIP found for service %s", svcKey)
}