Merge pull request #1608 from chrismoos/fix_svc_cluster_ip
Fix issue with clusterIP detection on service upstream. #1534
This commit is contained in:
commit
7a8b98b721
1 changed files with 1 additions and 1 deletions
|
@ -819,7 +819,7 @@ func (ic *GenericController) getServiceClusterEndpoint(svcKey string, backend *e
|
||||||
}
|
}
|
||||||
|
|
||||||
svc := svcObj.(*apiv1.Service)
|
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)
|
return endpoint, fmt.Errorf("No ClusterIP found for service %s", svcKey)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue