proxier/iptables: check feature gate ProxyTerminatingEndpoints

Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
This commit is contained in:
Andrew Sy Kim 2021-04-29 16:53:27 -04:00
parent 25e2c92733
commit 8c514cb232

View File

@ -1499,7 +1499,7 @@ func (proxier *Proxier) syncProxyRules() {
// Prefer local ready endpoint chains, but fall back to ready terminating if none exist // Prefer local ready endpoint chains, but fall back to ready terminating if none exist
localEndpointChains := localReadyEndpointChains localEndpointChains := localReadyEndpointChains
if len(localEndpointChains) == 0 { if utilfeature.DefaultFeatureGate.Enabled(features.ProxyTerminatingEndpoints) && len(localEndpointChains) == 0 {
localEndpointChains = localServingTerminatingEndpointChains localEndpointChains = localServingTerminatingEndpointChains
} }