mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
Changed usage of NodeLocal* to *PolicyLocal
This commit is contained in:
parent
198367a486
commit
61b7e6c49c
@ -2010,11 +2010,11 @@ func (proxier *Proxier) syncEndpoint(svcPortName proxy.ServicePortName, onlyNode
|
|||||||
newEndpoints.Insert(epInfo.String())
|
newEndpoints.Insert(epInfo.String())
|
||||||
}
|
}
|
||||||
if onlyNodeLocalEndpoints && len(newEndpoints) == 0 {
|
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())
|
proxier.serviceNoLocalEndpointsInternal.Insert(svcPortName.NamespacedName.String())
|
||||||
}
|
}
|
||||||
|
|
||||||
if svcInfo.NodeLocalExternal() {
|
if svcInfo.ExternalPolicyLocal() {
|
||||||
proxier.serviceNoLocalEndpointsExternal.Insert(svcPortName.NamespacedName.String())
|
proxier.serviceNoLocalEndpointsExternal.Insert(svcPortName.NamespacedName.String())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user