Skip to content

Add Block volume support for CSI provisioner #110

Closed
@mkimuram

Description

@mkimuram

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:

  1. Add SupportsBlock that properly returns whether Storage Provider's plugin supports block (this will be checked by using ValidateVolumeCapabilities),
  2. Pass BlockVolume instead of MountVolume to CreateVolume if volumeMode is set to be Block on Provision,
  3. Set volumeMode to PV returned by Provision.

In Storage Provider's plugin, below two logics should be implemented:

  1. Return true to ValidateVolumeCapabilities with BlockVolume specified if it supports block, and return false if it doesn't,
  2. Properly handle CreateVolume with BlockVolume specified, if ValidateVolumeCapabilities with BlockVolume returns true.
    (In most case, no special handling would be needed, as far as I see existing provisioner/attacher codes.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions