kubernetes/pkg/volume/storageos
Kubernetes Submit Queue 9a75b4d7a9
Merge pull request #58816 from croomes/storageos_containerized_kubelet
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

StorageOS configurable device directory and mount options

**What this PR does / why we need it**:
This allows StorageOS volumes to be mounted when the kubelet is running in a container and we are unable to use the default device location (/var/lib/storageos/volumes).  With this PR, the node's device location is requested via the StorageOS api, falling back to the current behaviour if not configured.  The node's device location can be supplied as an environment variable (DEVICE_DIR) to the StorageOS container.  This is backwards-compatible and no changes are needed to existing deployments.

The PR also allows Mount options to be set for StorageOS volumes in the same way they're enabled for other volume plugins.

The StorageOS API dependency was updated to the latest version, but no functionality changes besides adding the DeviceDir property to the Controller object.

There is also a small refactor of the loopback device handling code in storageos_utils.go to capture stderr output.

**Release note**:
```release-note
StorageOS volume plugin updated to support mount options and environments where the kubelet runs in a container and the device location should be specified.
```

Not sure why godep changed the comments of unrelated packages in Godeps.json...

/sig storage
2018-02-22 18:11:34 -08:00
..
BUILD Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
doc.go Add StorageOS volume plugin 2017-06-09 13:19:27 +01:00
OWNERS Add StorageOS volume plugin 2017-06-09 13:19:27 +01:00
storageos_test.go StorageOS support for containerized kubelet and mount options 2018-02-06 13:52:33 +00:00
storageos_util_test.go StorageOS support for containerized kubelet and mount options 2018-02-06 13:52:33 +00:00
storageos_util.go StorageOS support for containerized kubelet and mount options 2018-02-06 13:52:33 +00:00
storageos.go StorageOS support for containerized kubelet and mount options 2018-02-06 13:52:33 +00:00