Commit ef53f372 authored by Chris O'Haver's avatar Chris O'Haver Committed by GitHub

exclude unready endpoints from endpointslices (#4580)

Signed-off-by: default avatarChris O'Haver <cohaver@infoblox.com>
parent 236c6cee
...@@ -127,6 +127,9 @@ func EndpointSliceToEndpoints(obj meta.Object) (meta.Object, error) { ...@@ -127,6 +127,9 @@ func EndpointSliceToEndpoints(obj meta.Object) (meta.Object, error) {
} }
for _, end := range ends.Endpoints { for _, end := range ends.Endpoints {
if end.Conditions.Ready == nil || !*end.Conditions.Ready {
continue
}
for _, a := range end.Addresses { for _, a := range end.Addresses {
ea := EndpointAddress{IP: a} ea := EndpointAddress{IP: a}
if end.Hostname != nil { if end.Hostname != nil {
......
Markdown is supported
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