Skip to content

Commit

Permalink
Changed usage of NodeLocal* to *PolicyLocal
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxRenaud committed Mar 31, 2022
1 parent 198367a commit 61b7e6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/proxy/ipvs/proxier.go
Expand Up @@ -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())
}
}
Expand Down

0 comments on commit 61b7e6c

Please sign in to comment.