Files
kubernetes/pkg
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
..
2018-04-27 07:56:42 -04:00
2018-02-16 13:43:01 -08:00
2018-04-25 09:47:14 -07:00
2018-04-26 08:27:49 -04:00
2018-02-16 13:43:01 -08:00
2018-02-12 10:54:33 -05:00
2018-04-28 15:43:09 +00:00
2018-04-11 18:35:24 +02:00
2018-02-16 13:43:01 -08:00
2018-03-13 17:20:16 +08:00