k3s/pkg/kubelet/rkt
Kubernetes Submit Queue 2c774753e1 Merge pull request #44467 from JulienBalestra/fix-rkt-host-path-volume
Automatic merge from submit-queue (batch tested with PRs 44469, 44566, 44467, 44526)

Kubelet:rkt Fix the hostPath Volume creation

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

This PR fix the `hostPath` volume when the path exist and it's not a directory.
At the moment, the creation of a `hostPath` volume for an existing file leads to this error:

> kubelet[1984]: E0413 07:53:16.480922    1984 pod_workers.go:184] Error syncing pod 38359a57-1fb1-11e7-a484-76870fe7db83, skipping: failed to SyncPod: mkdir /usr/share/coreos/lsb-release: not a directory

**Special notes for your reviewer**:

You can have a look to the difference with this [gist](https://gist.github.com/JulienBalestra/28ae15efc8a1393d350300880c07ff4f)
2017-04-17 20:06:59 -07:00
..
BUILD autogenerated 2017-04-14 10:40:57 -07:00
OWNERS Update OWNERS approvers and reviewers: pkg/kubelet 2017-01-18 10:27:11 -08:00
cap.go
config.go
container_id.go
doc.go
fake_rkt_interface_test.go Unify fake runtime helper in kuberuntime, rkt and dockertools. 2017-02-27 01:43:37 -08:00
image.go Rename imageservice.IsImagePresent to GetImageRef 2016-12-31 08:36:55 +08:00
log.go start the apimachinery repo 2017-01-11 09:09:48 -05:00
rkt.go Merge pull request #44467 from JulienBalestra/fix-rkt-host-path-volume 2017-04-17 20:06:59 -07:00
rkt_test.go Unify fake runtime helper in kuberuntime, rkt and dockertools. 2017-02-27 01:43:37 -08:00
systemd.go Fix comments typo in rkt. 2017-03-24 11:31:15 +08:00
version.go Port remaining code to pkg/util/version 2016-12-13 08:53:24 -05:00