k3s/cmd
Kubernetes Submit Queue 11fc906c2b
Merge pull request #54052 from m1093782566/netlink
Automatic merge from submit-queue (batch tested with PRs 55247, 55324, 55261, 55147, 54052). 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>.

Implement dummy device operation by netlink for ipvs proxier

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

Currently, we implement network interface operations, e.g. create a dummy device and delete a dummy interface via ip cmd and then collect the exist code. For example, we assume the following command:
```
ip link add kube-ipvs0 type dummy 
```
returns 2 means the dummy device `kube-ipvs0` exists, see https://github.com/kubernetes/kubernetes/blob/master/pkg/proxy/ipvs/proxier.go#L1529 .

However, from the man page of ip command, exit status 2 just means an error was reported by the kernel, see http://man7.org/linux/man-pages/man8/ip.8.html#EXIT_STATUS.

So, that's a bug.

This PR implements dummy device operation by netlink for ipvs proxier so that can get ride of ip command operations.

**Which issue this PR fixes**: 

fixes #54054

**Special notes for your reviewer**:

**Release note**:

```release-note
NONE
```

/sig network
/area kube-proxy
/kind bug
2017-11-09 00:59:32 -08:00
..
clicheck update BUILD files 2017-10-15 18:18:13 -07:00
cloud-controller-manager Add support for configmap resource lock type to CCM 2017-11-05 19:24:16 -05:00
gendocs update BUILD files 2017-10-15 18:18:13 -07:00
genkubedocs kubeadm-doc 2017-10-27 09:57:25 +02:00
genman kubeadm-doc 2017-10-27 09:57:25 +02:00
genswaggertypedocs update BUILD files 2017-10-15 18:18:13 -07:00
genutils cmd: genutils: remove golint_failure entry 2017-11-02 12:48:15 +11:00
genyaml update BUILD files 2017-10-15 18:18:13 -07:00
gke-certificates-controller use versiond group clients from client-go 2017-11-07 14:47:22 +08:00
hyperkube Refactor scheduler config API 2017-11-07 09:41:39 -05:00
importverifier Merge pull request #54568 from sttts/sttts-import-verifier-yaml 2017-10-25 23:10:29 -07:00
kube-apiserver Fix data race in TestCRD 2017-11-08 14:44:11 -08:00
kube-controller-manager Merge pull request #49763 from supereagle/versioned-group-clients 2017-11-08 17:13:27 -08:00
kube-proxy Merge pull request #54052 from m1093782566/netlink 2017-11-09 00:59:32 -08:00
kubeadm Merge pull request #52501 from rajansandeep/featurecoredns 2017-11-08 15:41:14 -08:00
kubectl Merge pull request #50887 from netroby/patch-1 2017-11-02 15:40:15 -07:00
kubelet use versiond group clients from client-go 2017-11-07 14:47:22 +08:00
kubemark Update bazel 2017-10-18 17:24:04 +02:00
linkcheck update BUILD files 2017-10-15 18:18:13 -07:00
BUILD Remove seemingly obsolete binaries 2017-08-18 21:01:19 -07:00
OWNERS