kubernetes/pkg/util/mount
Kubernetes Submit Queue 198e83588b Merge pull request #46458 from jsafrane/mount-prep
Automatic merge from submit-queue (batch tested with PRs 46458, 50934, 50766, 50970, 47698)

Prepare VolumeHost for running mount tools in containers

This is the first part of implementation of https://github.com/kubernetes/features/issues/278 - running mount utilities in containers.

It updates `VolumeHost` interface:

*  `GetMounter()` now requires volume plugin name, as it is going to return different mounter to different volume plugings, because mount utilities for these plugins can be on different places.
* New `GetExec()` method that should volume plugins use to execute any utilities. This new `Exec` interface will execute them on proper place.
* `SafeFormatAndMount` is updated to the new `Exec` interface.

This is just a preparation, `GetExec` right now leads to simple `os.Exec` and mount utilities are executed on the same place as before. Also, the volume plugins will be updated in subsequent PRs (split into separate PRs, some plugins required lot of changes).

```release-note
NONE
```

@kubernetes/sig-storage-pr-reviews 
@rootfs @gnufied
2017-08-21 18:11:16 -07:00
..
BUILD SafeFormatAndMount should use volume.Exec provided by VolumeHost 2017-08-14 12:16:27 +02:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
exec.go Add Exec interface to VolumeHost 2017-08-14 12:16:25 +02:00
fake.go Fixes bind-mount teardown failure with non-mount point Local volumes 2017-07-11 17:19:58 -04:00
mount_linux_test.go Use reflect.DeepEqual to replace sliceEqual 2017-06-14 16:25:43 +08:00
mount_linux.go SafeFormatAndMount should use volume.Exec provided by VolumeHost 2017-08-14 12:16:27 +02:00
mount_unsupported.go Merge pull request #49640 from jsafrane/systemd-mount-service 2017-08-09 12:05:01 -07:00
mount.go SafeFormatAndMount should use volume.Exec provided by VolumeHost 2017-08-14 12:16:27 +02:00
nsenter_mount_test.go Fix findmnt parsing in containerized kubelet 2017-07-18 13:35:44 +02:00
nsenter_mount_unsupported.go Fixes bind-mount teardown failure with non-mount point Local volumes 2017-07-11 17:19:58 -04:00
nsenter_mount.go Merge pull request #49640 from jsafrane/systemd-mount-service 2017-08-09 12:05:01 -07:00
OWNERS Add owner file in /pkg/util/mount package 2017-02-06 10:51:26 -08:00
safe_format_and_mount_test.go SafeFormatAndMount should use volume.Exec provided by VolumeHost 2017-08-14 12:16:27 +02:00