Remove an unnecessary comment in nftables output

(It's redundant with the chain name.)
This commit is contained in:
Dan Winship 2024-07-18 10:54:28 -04:00
parent 11f55eae96
commit f762e5c8de
2 changed files with 1 additions and 2 deletions

View File

@ -1364,7 +1364,6 @@ func (proxier *Proxier) syncProxyRules() {
Value: []string{
fmt.Sprintf("goto %s", fwChain),
},
Comment: &svcPortNameString,
})
}
}

View File

@ -445,7 +445,7 @@ func TestOverallNFTablesRules(t *testing.T) {
add element ip kube-proxy service-ips { 172.30.0.45 . tcp . 80 : goto service-HVFWP5L3-ns5/svc5/tcp/p80 }
add element ip kube-proxy service-ips { 5.6.7.8 . tcp . 80 : goto external-HVFWP5L3-ns5/svc5/tcp/p80 }
add element ip kube-proxy service-nodeports { tcp . 3002 : goto external-HVFWP5L3-ns5/svc5/tcp/p80 }
add element ip kube-proxy firewall-ips { 5.6.7.8 . tcp . 80 comment "ns5/svc5:p80" : goto firewall-HVFWP5L3-ns5/svc5/tcp/p80 }
add element ip kube-proxy firewall-ips { 5.6.7.8 . tcp . 80 : goto firewall-HVFWP5L3-ns5/svc5/tcp/p80 }
# svc6
add element ip kube-proxy cluster-ips { 172.30.0.46 }