Files
kubernetes/pkg/util
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
..
2018-06-22 16:22:57 -07:00
2018-06-22 16:22:57 -07:00
2018-06-22 16:22:57 -07:00
2018-06-22 16:22:57 -07:00
2018-02-16 13:43:01 -08:00
2018-02-16 13:43:01 -08:00
2018-02-16 13:43:01 -08:00
2018-02-15 18:04:04 -05:00
2018-06-22 16:22:57 -07:00
2018-02-16 13:43:01 -08:00
2017-10-15 18:18:13 -07:00
2018-06-22 16:22:57 -07:00
2018-06-22 16:22:57 -07:00
2017-10-15 18:18:13 -07:00
2018-06-22 16:22:57 -07:00
2018-02-27 11:18:11 -08:00
2018-02-16 13:43:01 -08:00
2018-06-22 16:22:57 -07:00
2018-06-22 16:22:57 -07:00
2018-06-22 16:22:57 -07:00
2018-06-22 16:22:57 -07:00
2017-10-15 18:18:13 -07:00
2018-06-22 16:22:57 -07:00
2018-06-22 16:22:57 -07:00
2018-06-22 16:22:57 -07:00
2018-07-28 07:54:17 +08:00