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 b86d440229
commit 3fb2563b1a

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