k3s/pkg/util
Kubernetes Submit Queue 44a7be98fd Merge pull request #41618 from JiangtianLi/k8swin
Automatic merge from submit-queue (batch tested with PRs 42316, 41618, 42201, 42113, 42191)

Support unqualified and partially qualified domain name in DNS query in Windows kube-proxy

**What this PR does / why we need it**:
In Windows container networking, --dns-search is not currently supported on Windows Docker. Besides, even with --dns-suffix, inside Windows container DNS suffix is not appended to DNS query names. That makes unqualified domain name or partially qualified domain name in DNS query not able to resolve.

This PR provides a solution to resolve unqualified domain name or partially qualified domain name in DNS query for Windows container in Windows kube-proxy. It uses well-known Kubernetes DNS suffix as well host DNS suffix search list to append to the name in DNS query. DNS packet in kube-proxy UDP stream is modified as appropriate.

This PR affects the Windows kube-proxy only.

**Special notes for your reviewer**:
This PR is based on top of Anthony Howe's commit 48647fb, 0e37f0a and 7e2c71f which is already included in the PR 41487. Please only review commit b9dfb69.

**Release note**:

```release-note
Add DNS suffix search list support in Windows kube-proxy.
```
2017-03-01 07:48:16 -08:00
..
async Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
bandwidth teach kubenet to use annotation instead of pod object for traffic shaper 2017-02-27 10:11:09 -08:00
chmod Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
chown Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
config Update generated files 2017-01-24 20:56:03 +01:00
configz Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
crlf Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
dbus Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
ebtables Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
env Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
errors add back just enough empty packages to allow heapster cycles to succeed 2017-01-17 08:07:30 -05:00
exec Add support for attacher/detacher interface in Flex volume 2017-02-24 20:18:06 -05:00
flock Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
framer add back just enough empty packages to allow heapster cycles to succeed 2017-01-17 08:07:30 -05:00
goroutinemap OWNERS: Update latest OWNERS files 2017-01-23 10:05:48 -08:00
hash Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
i18n Update extraction script, sort messages, add .pot file. 2017-02-23 18:53:00 +00:00
initsystem Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
interrupt Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
intstr move util/intstr to apimachinery 2017-01-30 12:46:59 -05:00
io Update generated files 2017-01-29 21:41:45 +01:00
ipconfig Fix DNS suffix search list issue for Windows container and workaround in kube-proxy. 2017-02-27 19:25:46 -08:00
iptables pkg/util/iptables missing unit tests 2017-01-20 10:50:45 +01:00
json add back just enough empty packages to allow heapster cycles to succeed 2017-01-17 08:07:30 -05:00
keymutex Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
labels Create meta/internalversion for ListOptions 2017-01-23 16:53:18 -05:00
limitwriter Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
logs start the apimachinery repo 2017-01-11 09:09:48 -05:00
maps Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
metrics move authoritative client-go utils out of pkg 2017-01-24 08:59:18 -05:00
mount Merge pull request #41944 from jingxu97/Feb/mounter 2017-02-28 09:20:21 -08:00
net add back just enough empty packages to allow heapster cycles to succeed 2017-01-17 08:07:30 -05:00
netsh cleanup proxier 2017-02-27 16:00:49 -08:00
node Update generated files 2017-01-25 19:49:45 +01:00
oom Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
parsers Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
procfs Fix regex match doc of procfs.PidOf 2017-02-13 23:10:14 +08:00
rand move pkg/util/rand 2017-01-16 16:04:03 -05:00
resourcecontainer Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
rlimit Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
runtime add back just enough empty packages to allow heapster cycles to succeed 2017-01-17 08:07:30 -05:00
selinux Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
sets add back just enough empty packages to allow heapster cycles to succeed 2017-01-17 08:07:30 -05:00
slice move pkg/util/rand 2017-01-16 16:04:03 -05:00
strings Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
sysctl Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
system refactor: use metav1.ObjectMeta in other types 2017-01-17 16:17:19 -05:00
tail Limit the size of the termination log and allow log input 2017-01-23 12:26:38 -05:00
taints make kubectl respect taint effect NoExecute 2017-02-26 22:41:57 +08:00
term start the apimachinery repo 2017-01-11 09:09:48 -05:00
threading Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
uuid Update generated files 2017-01-25 19:49:45 +01:00
validation add back just enough empty packages to allow heapster cycles to succeed 2017-01-17 08:07:30 -05:00
version Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
wait add back just enough empty packages to allow heapster cycles to succeed 2017-01-17 08:07:30 -05:00
workqueue/prometheus move workqueue to client-go 2017-01-30 09:08:21 -05:00
yaml add back just enough empty packages to allow heapster cycles to succeed 2017-01-17 08:07:30 -05:00
BUILD Fix DNS suffix search list issue for Windows container and workaround in kube-proxy. 2017-02-27 19:25:46 -08:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
template.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
template_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
umask.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
umask_windows.go delete ErrorTimeout() function and modify Umask() args 2017-01-12 11:05:30 +08:00
util.go kubelet: storage: don't hang kubelet on unresponsive nfs 2016-10-18 08:45:40 -05:00
util_test.go pkg/util: move CompileRegex helper into apiserver 2017-01-25 17:21:12 +01:00