aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 06fc6ab3e..50bd5ac29 100644
--- a/plugin/kubernetes/object/endpoint.go
+++ b/plugin/kubernetes/object/endpoint.go
@@ -127,6 +127,9 @@ func EndpointSliceToEndpoints(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 {