k3s/test
Kubernetes Submit Queue 7c9ba69617 Merge pull request #48487 from dixudx/validate_cadvisor_rootpath
Automatic merge from submit-queue (batch tested with PRs 48487, 49009, 49862, 49843, 49700)

validate cadvisor rootpath

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

When working on issue #48452, I found [KubeletConfiguration.RootDirectory](https://github.com/kubernetes/kubernetes/blob/master/cmd/kubelet/app/server.go#L525) was never been validated. The default value is set to ["/var/lib/kubelet"](https://github.com/kubernetes/kubernetes/blob/master/pkg/apis/componentconfig/v1alpha1/defaults.go#L342).

If this directory does not exist in the file system, the [cadvisor.manager](https://github.com/kubernetes/kubernetes/blob/master/vendor/github.com/google/cadvisor/manager/manager.go#L679) will fail to gather the information for metrics.

> error trying to get filesystem Device for dir /var/lib/kubelet: err: stat failed on /var/lib/kubelet with error: no such file or directory

**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #

**Special notes for your reviewer**:

/cc @feiskyer @k82cn

**Release note**:

```release-note
validate cadvisor rootpath
```
2017-08-04 23:40:00 -07:00
..
e2e Merge pull request #50133 from xiangpengzhao/update-owner 2017-08-04 18:13:31 -07:00
e2e_federation Merge pull request #49538 from supereagle/versioned-coreclient 2017-07-29 05:28:49 -07:00
e2e_node Merge pull request #48487 from dixudx/validate_cadvisor_rootpath 2017-08-04 23:40:00 -07:00
fixtures Flag support in kubectl plugins 2017-07-18 15:35:40 -03:00
images Merge pull request #47019 from jessfraz/allowPrivilegeEscalation 2017-07-31 16:56:58 -07:00
integration Merge pull request #49356 from duan-yue/code_clear 2017-08-02 05:16:04 -07:00
kubemark Fix bug in command retrying in kubemark 2017-07-24 17:18:50 +02:00
list
soak use the core client with version 2017-07-26 19:16:02 +08:00
utils # This is a combination of 2 commits. 2017-07-19 00:28:40 -04:00
BUILD
OWNERS Add sig-testing OWNERS_ALIASES 2017-07-25 11:05:18 -07:00
test_owners.csv Remove traces of go2idl 2017-08-03 09:33:58 +02:00
test_owners.json remove deprecated flags LowDiskSpaceThresholdMB and OutOfDiskTransitionFrequency 2017-07-20 13:23:13 -07:00