k3s/pkg
Kubernetes Submit Queue cb1ef9f7e8
Merge pull request #64815 from dixudx/hostname_empty
Automatic merge from submit-queue. 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>.

error out empty hostname

**What this PR does / why we need it**:
For linux, the hostname is read from file `/proc/sys/kernel/hostname` directly, which can be overwritten with whitespaces.

Should error out such invalid hostnames.

**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 kubernetes/kubeadm#835

**Special notes for your reviewer**:
/cc luxas timothysc 

**Release note**:

```release-note
nodes: improve handling of erroneous host names
```
2018-08-03 17:13:32 -07:00
..
api make package name match all the import aliases 2018-08-01 15:31:12 -04:00
apis make package name match all the import aliases 2018-08-01 15:31:12 -04:00
auth Improve multi-authorizer errors 2018-07-06 10:55:17 -04:00
capabilities
client clean up node expansion 2018-07-10 11:01:15 +08:00
cloudprovider Merge pull request #65730 from ddebroy/ebs-affinity1 2018-08-01 15:52:07 -07:00
controller Merge pull request #66933 from deads2k/kubectl-07-rollout 2018-08-03 14:00:32 -07:00
credentialprovider fix acr sp access issue 2018-07-20 08:39:31 +00:00
features Merge pull request #66726 from liggitt/kubelet-server 2018-07-27 22:17:09 -07:00
fieldpath fieldpath: Add tests for missing cases 2018-07-12 10:26:18 +02:00
generated Merge pull request #65737 from roycaihw/api-linter 2018-07-13 18:00:00 -07:00
kubeapiserver kube-apiserver: disallow --secure-port 0 2018-07-09 14:03:08 +02:00
kubectl switching rolling update to external clients 2018-08-03 13:18:14 -04:00
kubelet Merge pull request #64815 from dixudx/hostname_empty 2018-08-03 17:13:32 -07:00
kubemark Merge pull request #66284 from stewart-yu/stewart-sharedtype-move 2018-07-30 19:50:36 -07:00
master generated 2018-07-13 11:41:09 -04:00
printers Break annotations with newlines and shorten length 2018-07-31 19:22:50 -04:00
probe Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
proxy make package name match all the import aliases 2018-08-01 15:31:12 -04:00
quota Merge pull request #65572 from yue9944882/fixes-admission-operation-mismatch-for-create-on-update 2018-07-19 10:42:54 -07:00
registry Improve the output of `kubectl get events` 2018-07-26 16:12:32 -04:00
routes
scheduler Merge pull request #65616 from cofyc/fix56163 2018-07-31 19:18:00 -07:00
security Cleanup & fix PodSecurityPolicy field path usage 2018-07-18 17:47:32 -07:00
securitycontext Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
serviceaccount fix a nit error in log 2018-06-27 14:21:27 +08:00
ssh Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
util Merge pull request #64815 from dixudx/hostname_empty 2018-08-03 17:13:32 -07:00
version Set gazelle:importmap_prefix for everything under staging/src 2018-06-22 16:22:57 -07:00
volume Merge pull request #64815 from dixudx/hostname_empty 2018-08-03 17:13:32 -07:00
watch/json Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
windows/service Update to gazelle 0.12.0 and run hack/update-bazel.sh 2018-06-22 16:22:18 -07:00
.import-restrictions
BUILD Autogenerated stuff 2018-06-27 13:31:10 +02:00
OWNERS