Fix issue with clusterIP detection on service upstream. #1534
This commit is contained in:
parent
4f23572ab3
commit
f86a83347d
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