k3s/pkg/kubelet/util
Kubernetes Submit Queue 5e853709a7 Merge pull request #46089 from karataliu/wincri1
Automatic merge from submit-queue (batch tested with PRs 46124, 46434, 46089, 45589, 46045)

Support TCP type runtime endpoint for kubelet

**What this PR does / why we need it**:
Currently the grpc server for kubelet and dockershim has a hardcoded endpoint: unix socket '/var/run/dockershim.sock', which is not applicable on non-unix OS.

This PR is to support TCP endpoint type besides unix socket.

**Which issue this PR fixes** 
This is a first attempt to address issue https://github.com/kubernetes/kubernetes/issues/45927

**Special notes for your reviewer**:
Before this change, running on Windows node results in:
```
Container Manager is unsupported in this build
```

After adding the cm stub, error becomes:
```
listen unix /var/run/dockershim.sock: socket: An address incompatible with the requested protocol was used.
```

This PR is to fix those two issues.

After this change, still meets 'seccomp' related issue when running on Windows node, needs more updates later.

**Release note**:
2017-05-25 21:40:02 -07:00
..
cache Refactor move of client-go/util/clock to apimachinery 2017-05-20 14:19:48 -04:00
csr autogenerated 2017-04-14 10:40:57 -07:00
format autogenerated 2017-04-14 10:40:57 -07:00
ioutils Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
queue Refactor move of client-go/util/clock to apimachinery 2017-05-20 14:19:48 -04:00
sliceutils Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
BUILD Support TCP type runtime endpoint for kubelet. 2017-05-25 09:16:11 +08:00
doc.go
util.go Support TCP type runtime endpoint for kubelet. 2017-05-25 09:16:11 +08:00
util_linux.go Support TCP type runtime endpoint for kubelet. 2017-05-25 09:16:11 +08:00
util_test.go Support TCP type runtime endpoint for kubelet. 2017-05-25 09:16:11 +08:00
util_unsupported.go Support TCP type runtime endpoint for kubelet. 2017-05-25 09:16:11 +08:00
util_windows.go Support TCP type runtime endpoint for kubelet. 2017-05-25 09:16:11 +08:00