k3s/pkg/kubelet/network
Kubernetes Submit Queue 6a431d1c0e
Merge pull request #60912 from m1093782566/refactor-hostport
Automatic merge from submit-queue (batch tested with PRs 60898, 60912, 60753, 61002, 60796). 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 TODO: move openHostPorts and closeHostPorts into a common struct and add UTs

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

* Fix [TODO](https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/network/hostport/hostport.go#L132): move openHostPorts and closeHostPorts into a common struct, and eliminate the `hostportOpener` parameter in openHostPorts(), to make them looks more consistent.

* Add UTs for closeHostPorts.

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #

**Special notes for your reviewer**:

**Release note**:

```release-note
NONE
```
2018-03-20 17:37:10 -07:00
..
cni kubelet: make --cni-bin-dir accept a comma-separated list of CNI plugin directories 2018-03-01 10:51:18 -06:00
dns Merge pull request #59771 from MrHohn/custom-pod-dns-e2e 2018-02-24 20:01:44 -08:00
hairpin Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
hostport move openHostPorts and closeHostPorts into a common struct 2018-03-08 11:13:46 +08:00
kubenet kubelet: make --cni-bin-dir accept a comma-separated list of CNI plugin directories 2018-03-01 10:51:18 -06:00
metrics update BUILD files 2017-10-15 18:18:13 -07:00
testing Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
BUILD Move DNS related kubelet codes into its own package 2017-11-15 10:56:44 -08:00
OWNERS add OWNER file to kubelet/network 2017-02-24 11:41:13 -08:00
network.go
plugins.go ip6tables should be set in the noop plugin 2017-11-13 11:17:21 -05:00