From 8c514cb2329c2e35f4d344ab4328d27c29f245e8 Mon Sep 17 00:00:00 2001 From: Andrew Sy Kim Date: Thu, 29 Apr 2021 16:53:27 -0400 Subject: [PATCH] proxier/iptables: check feature gate ProxyTerminatingEndpoints Signed-off-by: Andrew Sy Kim --- 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 c8b49c1abe3..6a1ca47b21f 100644 --- a/pkg/proxy/iptables/proxier.go +++ b/pkg/proxy/iptables/proxier.go @@ -1499,7 +1499,7 @@ func (proxier *Proxier) syncProxyRules() { // Prefer local ready endpoint chains, but fall back to ready terminating if none exist localEndpointChains := localReadyEndpointChains - if len(localEndpointChains) == 0 { + if utilfeature.DefaultFeatureGate.Enabled(features.ProxyTerminatingEndpoints) && len(localEndpointChains) == 0 { localEndpointChains = localServingTerminatingEndpointChains }