copy unready exclusion to v1beta1 func (#4616)
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
This commit is contained in:
parent
24547447d0
commit
0a3375e76b
1 changed files with 3 additions and 0 deletions
|
@ -178,6 +178,9 @@ func EndpointSliceV1beta1ToEndpoints(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 {
|
||||||
|
|
Loading…
Add table
Reference in a new issue