Skip to content

Commit

Permalink
fix LB: skip service without cluster IP
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzujian committed Dec 7, 2021
1 parent 9eb2ebc commit ae23d3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit ae23d3d

Please sign in to comment.