Commit 0a3375e7 authored by Chris O'Haver's avatar Chris O'Haver Committed by GitHub

copy unready exclusion to v1beta1 func (#4616)

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