diff options
author | 2021-05-10 13:29:56 -0400 | |
---|---|---|
committer | 2021-05-10 13:29:56 -0400 | |
commit | 0a3375e76bba0688ce479bcdb34d4b9ae524a438 (patch) | |
tree | b1bec51db40b2bc9ed758defe7b13f4e091fa0fc /plugin/kubernetes | |
parent | 24547447d0457b8600c63602d1a64a60d018c82f (diff) | |
download | coredns-0a3375e76bba0688ce479bcdb34d4b9ae524a438.tar.gz coredns-0a3375e76bba0688ce479bcdb34d4b9ae524a438.tar.zst coredns-0a3375e76bba0688ce479bcdb34d4b9ae524a438.zip |
copy unready exclusion to v1beta1 func (#4616)
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
Diffstat (limited to 'plugin/kubernetes')
-rw-r--r-- | plugin/kubernetes/object/endpoint.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugin/kubernetes/object/endpoint.go b/plugin/kubernetes/object/endpoint.go index 9a5347a9b..f504904a8 100644 --- a/plugin/kubernetes/object/endpoint.go +++ b/plugin/kubernetes/object/endpoint.go @@ -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 { |