From 61b7e6c49c7afa5f55874bbe89e7c54bbbbf8dfe Mon Sep 17 00:00:00 2001 From: Max Renaud Date: Thu, 31 Mar 2022 18:55:47 +0000 Subject: [PATCH] Changed usage of NodeLocal* to *PolicyLocal --- pkg/proxy/ipvs/proxier.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/proxy/ipvs/proxier.go b/pkg/proxy/ipvs/proxier.go index 0631be80ab8..0dcd8edf35a 100644 --- a/pkg/proxy/ipvs/proxier.go +++ b/pkg/proxy/ipvs/proxier.go @@ -2010,11 +2010,11 @@ func (proxier *Proxier) syncEndpoint(svcPortName proxy.ServicePortName, onlyNode newEndpoints.Insert(epInfo.String()) } if onlyNodeLocalEndpoints && len(newEndpoints) == 0 { - if svcInfo.NodeLocalInternal() && utilfeature.DefaultFeatureGate.Enabled(features.ServiceInternalTrafficPolicy) { + if svcInfo.InternalPolicyLocal() && utilfeature.DefaultFeatureGate.Enabled(features.ServiceInternalTrafficPolicy) { proxier.serviceNoLocalEndpointsInternal.Insert(svcPortName.NamespacedName.String()) } - if svcInfo.NodeLocalExternal() { + if svcInfo.ExternalPolicyLocal() { proxier.serviceNoLocalEndpointsExternal.Insert(svcPortName.NamespacedName.String()) } }