mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 07:27:21 +00:00
Change to use ESIPP first class fields and update comments
This commit is contained in:
@@ -1069,7 +1069,7 @@ func (proxier *Proxier) syncProxyRules(reason syncReason) {
|
||||
|
||||
svcXlbChain := serviceLBChainName(svcNameString, protocol)
|
||||
if svcInfo.onlyNodeLocalEndpoints {
|
||||
// Only for services with the externalTraffic annotation set to OnlyLocal
|
||||
// Only for services request OnlyLocal traffic
|
||||
// create the per-service LB chain, retaining counters if possible.
|
||||
if lbChain, ok := existingNATChains[svcXlbChain]; ok {
|
||||
writeLine(natChains, lbChain)
|
||||
@@ -1385,7 +1385,7 @@ func (proxier *Proxier) syncProxyRules(reason syncReason) {
|
||||
continue
|
||||
}
|
||||
|
||||
// Now write ingress loadbalancing & DNAT rules only for services that have a localOnly annotation
|
||||
// Now write ingress loadbalancing & DNAT rules only for services that request OnlyLocal traffic.
|
||||
// TODO - This logic may be combinable with the block above that creates the svc balancer chain
|
||||
localEndpoints := make([]*endpointsInfo, 0)
|
||||
localEndpointChains := make([]utiliptables.Chain, 0)
|
||||
|
||||
Reference in New Issue
Block a user