From 4d5453e01c3fda77b8b0cbe0f1952b2aaef54eec Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Sat, 22 May 2021 10:22:43 -0400 Subject: [PATCH] UPSTREAM: : Fix dns endpoints hack (to be squashed) Should be squashed into "Prefer local endpoint for cluster DNS service" on next rebase. --- pkg/proxy/iptables/proxier.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/proxy/iptables/proxier.go b/pkg/proxy/iptables/proxier.go index 95f9e2c6ca15d..cc1698180fd8a 100644 --- a/pkg/proxy/iptables/proxier.go +++ b/pkg/proxy/iptables/proxier.go @@ -1044,7 +1044,7 @@ func (proxier *Proxier) syncProxyRules() { for _, ep := range allEndpoints { if ep.GetIsLocal() { klog.V(4).Infof("Found a local endpoint %q for service %q; preferring the local endpoint and ignoring %d other endpoints", ep.String(), svcNameString, len(allEndpoints) - 1) - allEndpoints = []proxy.Endpoint{ep} + readyEndpoints = []proxy.Endpoint{ep} break } }