Skip to content

Commit

Permalink
Add controller capability fo ControllerPublishVolume.readonly
Browse files Browse the repository at this point in the history
  • Loading branch information
saad-ali committed Nov 9, 2018
1 parent 5d436c6 commit d7df952
Show file tree
Hide file tree
Showing 3 changed files with 295 additions and 277 deletions.
9 changes: 7 additions & 2 deletions csi.proto
Original file line number Diff line number Diff line change
Expand Up @@ -584,8 +584,10 @@ message ControllerPublishVolumeRequest {
// This is a REQUIRED field.
VolumeCapability volume_capability = 3;

// Whether to publish the volume in readonly mode. This field is
// REQUIRED.
// Whether to publish the volume in readonly mode.
// CO MUST set this field to false if SP does not have the
// PUBLISH_READONLY controller capability.
// This is a REQUIRED field.
bool readonly = 4;

// Secrets required by plugin to complete controller publish volume
Expand Down Expand Up @@ -776,6 +778,9 @@ message ControllerServiceCapability {
// the same plugin. Not all volume sources and parameters
// combinations may work.
CLONE_VOLUME = 7;
// Indicates the SP supports ControllerPublishVolume.readonly
// field.
PUBLISH_READONLY = 8;
}

Type type = 1;
Expand Down
Loading

0 comments on commit d7df952

Please sign in to comment.