mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 16:54:15 -04:00
copy unready exclusion to v1beta1 func (#4616)
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user