Split CustomBlockVolumeMapper and CustomBlockVolumeUnmapper

- Move SetUpDevice to BlockVolumeStager
  - Move MapPodDevice to BlockVolumePublisher
  - Move TearDownDevice to BlockVolumeUnstager
  - Move UnmapPodDevice to BlockVolumeUnpublisher
  - Implement BlockVolumePublisher only in local and csi plugin
  - Implement BlockVolumeUnstager only in fc, iscsi, rbd, and csi plugin
  - Implement BlockVolumeStager and BlockVolumeUnpublisher only in csi plugin
This commit is contained in:
Masaki Kimura
2019-11-12 19:44:36 +00:00
parent f363a03f0b
commit a275026ad4
3 changed files with 15 additions and 3 deletions

View File

@@ -170,7 +170,7 @@ type CustomBlockVolumeMapper interface {
// Unique device path across kubelet node reboot is required to avoid
// unexpected block volume destruction.
// If empty string is returned, the path retuned by attacher.Attach() and
// attacher.WaitForAttach() will be sued.
// attacher.WaitForAttach() will be used.
MapPodDevice() (string, error)
}