Refactor of GenerateMapDeviceFunc to delegate Map call to volume plugin.

This commit is contained in:
Vladimir Vivien
2018-05-21 08:44:17 -04:00
parent 4c13f5fdf5
commit 3569287993
14 changed files with 133 additions and 51 deletions

View File

@@ -162,6 +162,9 @@ type BlockVolumeMapper interface {
// at attacher.Attach() and attacher.WaitForAttach().
// This may be called more than once, so implementations must be idempotent.
SetUpDevice() (string, error)
// Map maps the block device path for the specified spec and pod.
MapDevice(devicePath, globalMapPath, volumeMapPath, volumeMapName string, podUID types.UID) error
}
// BlockVolumeUnmapper interface provides methods to cleanup/unmap the volumes.