aboutsummaryrefslogtreecommitdiff
path: root/plugin/kubernetes
diff options
context:
space:
mode:
authorGravatar Chris O'Haver <cohaver@infoblox.com> 2021-05-10 13:29:56 -0400
committerGravatar GitHub <noreply@github.com> 2021-05-10 13:29:56 -0400
commit0a3375e76bba0688ce479bcdb34d4b9ae524a438 (patch)
treeb1bec51db40b2bc9ed758defe7b13f4e091fa0fc /plugin/kubernetes
parent24547447d0457b8600c63602d1a64a60d018c82f (diff)
downloadcoredns-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.go3
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 {