Commit ae23d3df authored by zhangzujian's avatar zhangzujian
Browse files

fix LB: skip service without cluster IP

parent 9eb2ebc4
Showing with 1 addition and 1 deletion
+1 -1
......@@ -119,7 +119,7 @@ func (c *Controller) handleUpdateEndpoint(key string) error {
if len(clusterIPs) == 0 && svc.Spec.ClusterIP != "" && svc.Spec.ClusterIP != v1.ClusterIPNone {
clusterIPs = []string{svc.Spec.ClusterIP}
}
if len(clusterIPs) == 0 {
if len(clusterIPs) == 0 || clusterIPs[0] == v1.ClusterIPNone {
return nil
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment