k3s/pkg/proxy
Kubernetes Submit Queue 03c5f298f3
Merge pull request #62534 from nicolasbigler/duplicate-iptables-comment
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Fix duplicate comment in iptables rule for non-local public-port rule

**What this PR does / why we need it**:

When kubernetes creates an iptable rule for "from-non-local public-port"
rule the rule gets created with two identical comment section.

The function `iptablesNonLocalNodePortArgs` creates a list of arguments
for the rule from iptablesCommonPortalArgs function. This function
already appends the arguments for the rules comments and therefore does
not require appending the comment again.

**Special notes for your reviewer**:

I'm actually not a go programmer at all and have no idea how your tests work.
I doubt that my fix will require adjustements on tests but I'm not 100% sure.
If additional work is needed, I would be glad if someone could point it out to me so I can take care of it.

**Release note**:
```release-note
NONE
```
2018-04-29 11:39:40 -07:00
..
apis/kubeproxyconfig Add --ipvs-exclude-cidrs flag to kube-proxy. 2018-04-13 10:09:14 -07:00
config Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
healthcheck Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
iptables Auto-updated BUILD files 2018-02-27 11:18:11 -08:00
ipvs Merge pull request #62718 from Lion-Wei/ipvs-host 2018-04-27 19:50:45 -07:00
metrics add proxy metrics in app level 2017-10-16 21:10:51 +08:00
userspace Fix duplicate comment in iptables rule for non-local public-port rule 2018-04-12 18:10:16 +02:00
util Auto-updated BUILD files 2018-02-27 11:18:11 -08:00
winkernel LoadBalancerStatus make use of generated deep copy method 2018-03-28 14:08:50 +08:00
winuserspace update bazel 2018-03-09 09:23:33 +08:00
BUILD LoadBalancerStatus make use of generated deep copy method 2018-03-28 14:08:50 +08:00
OWNERS add me to iptables/kube-proxy reviewers 2018-02-22 17:36:57 -05:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
endpoints.go [kube-proxy] Mass service/endpoint info functions rename and comments 2018-02-27 11:14:02 -08:00
endpoints_test.go [kube-proxy] Mass service/endpoint info functions rename and comments 2018-02-27 11:14:02 -08:00
service.go LoadBalancerStatus make use of generated deep copy method 2018-03-28 14:08:50 +08:00
service_test.go [kube-proxy] Mass service/endpoint info functions rename and comments 2018-02-27 11:14:02 -08:00
types.go [kube-proxy] Mass service/endpoint info functions rename and comments 2018-02-27 11:14:02 -08:00