Fix issue with clusterIP detection on service upstream. #1534

This commit is contained in:
Chris Moos 2017-10-26 16:23:48 -07:00
parent 4f23572ab3
commit f86a83347d

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)
}