kubernetes/pkg/volume/glusterfs
Kubernetes Submit Queue 6a4203eb4b Merge pull request #51107 from jsafrane/exec-gluster
Automatic merge from submit-queue (batch tested with PRs 51105, 51097, 51110, 50843, 51107)

gluster: Use VolumeHost.GetExec() to execute stuff in volume plugins

**What this PR does / why we need it**:
This PR updates GlusterFS volume plugin to use `VolumeHost.GetExec()` to execute utilities like mkfs and lsblk instead of simple `os/exec`. This prepares the volume plugin to run these utilities in containers instead of running them on the host + makes the volume plugin more independent and less hardcoded.

See proposal in https://github.com/kubernetes/community/pull/589.

Note that this PR does **not** change place where the utilities are executed - `VolumeHost.GetExec()` still leads directly to `os/exec`. It will be changed when the aforementioned proposal is merged and implemented.

**Special notes for your reviewer**:

There are two commits:
* The first one removes unused `plugin.execCommand` (so we don't need to update it to `VolumeHost.GetExec`)
* The second one does the `VolumeHost.GetExec` trick described above.

@kubernetes/sig-storage-pr-reviews 

**Release note**:
```release-note
NONE
```
2017-08-23 05:51:31 -07:00
..
BUILD gluster: Use VolumeHost.GetExec() to execute stuff in volume plugins 2017-08-22 14:58:00 +02:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
glusterfs_minmax_test.go glusterfs: add MinMaxAllocator 2016-12-03 05:27:10 +01:00
glusterfs_minmax.go Make interface references consistent across the plugin code. 2017-05-17 10:19:56 +05:30
glusterfs_test.go gluster: Remove unused exe interface 2017-08-22 14:53:25 +02:00
glusterfs_util.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
glusterfs.go Merge pull request #51107 from jsafrane/exec-gluster 2017-08-23 05:51:31 -07:00
OWNERS Add Humble as GlusterFS approver. 2017-08-22 14:41:51 +02:00