mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-21 09:57:52 +00:00
Changed usage of NodeLocal* to *PolicyLocal
This commit is contained in:
@@ -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())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user