k3s/cmd/kube-proxy/app
Kubernetes Submit Queue fce58d25ac
Merge pull request #65425 from islinwb/ipvs_cleanup_rules
Automatic merge from submit-queue (batch tested with PRs 66136, 64999, 65425, 66120, 66074). 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>.

Not step into ipvs.CleanupLeftovers() if canUseIPVS's false

**What this PR does / why we need it**:
Earlier we decide whether we should clean up the left-over ipvs rules inside `ipvs.CleanupLeftovers()`, therefore we call function  `ipvs.CanUseIPVSProxier()` two times (and `GetModules()` two times).  Actually no need to step into `ipvs.CleanupLeftovers()` if `canUseIPVS` is false.

**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-07-12 15:14:16 -07:00
..
BUILD Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
conntrack.go Skip resize of nf_conntrack/parameters/hashsize if not necessary 2017-04-25 16:08:30 +02:00
init_others.go Add support for binaries to run as Windows services 2018-03-07 00:51:36 +01:00
init_windows.go Add support for binaries to run as Windows services 2018-03-07 00:51:36 +01:00
server.go kube-proxy should not depend on kubectl 2018-05-18 09:24:38 +08:00
server_others.go Merge pull request #65425 from islinwb/ipvs_cleanup_rules 2018-07-12 15:14:16 -07:00
server_others_test.go remove ipvs feature gateway 2018-05-30 10:43:16 +08:00
server_test.go remove ipvs feature gateway 2018-05-30 10:43:16 +08:00
server_windows.go Fix NewProxyServer 2017-11-22 14:17:10 -08:00