Closed
Description
CSI provisioner should provision Block volumes properly.
In CSI provisioner, below three logics will need to be implemented, to add Block volume support to CSI provisioner:
- Add
SupportsBlock
that properly returns whether Storage Provider's plugin supports block (this will be checked by usingValidateVolumeCapabilities
), - Pass
BlockVolume
instead ofMountVolume
toCreateVolume
ifvolumeMode
is set to beBlock
onProvision
, - Set
volumeMode
to PV returned byProvision
.
In Storage Provider's plugin, below two logics should be implemented:
- Return
true
toValidateVolumeCapabilities
withBlockVolume
specified if it supports block, and returnfalse
if it doesn't, - Properly handle
CreateVolume
withBlockVolume
specified, ifValidateVolumeCapabilities
withBlockVolume
returnstrue
.
(In most case, no special handling would be needed, as far as I see existing provisioner/attacher codes.)
Metadata
Metadata
Assignees
Labels
No labels