Files
kubernetes/pkg/volume
Kubernetes Submit Queue 1feb0fa6aa Merge pull request #49118 from adelton/flex-bind-mount
Automatic merge from submit-queue (batch tested with PRs 49444, 47864, 48584, 49395, 49118)

Allow unmounting bind-mounted directories.

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

For files, we cannot use `path/..`;
we could use `filepath.Dir` but for bind-mounted, `isNotMounted` which calls `IsLikelyNotMountPoint` would not work anyway.
Let's just have the driver do the work.

Addressing
```
Error: UnmountVolume.TearDown failed for volume "..." (volume.spec.Name: "...") pod "..." (UID: "...") with: lstat /path/.../test-flex/..: not a directory
```

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

N/A

**Special notes for your reviewer**:

N/A

**Release note**:

```release-note
It is now posible to use flexVolumes to bind mount directories and files.
```
2017-07-24 13:52:42 -07:00
..
2017-07-20 11:03:49 -07:00
2017-07-20 11:03:49 -07:00
2017-07-20 11:03:49 -07:00
2017-07-20 11:03:49 -07:00
2017-07-20 11:03:49 -07:00
2017-07-20 11:03:49 -07:00
2017-07-20 11:03:49 -07:00
2017-07-20 11:03:49 -07:00
2016-07-16 13:48:21 -04:00
2017-05-31 17:21:46 +05:30
2017-03-02 15:01:59 -08:00
2017-03-02 15:01:59 -08:00
2017-03-02 15:01:59 -08:00
2017-06-22 11:31:03 -07:00
2017-06-22 11:31:03 -07:00
2017-06-22 11:31:03 -07:00