Skip to content

Commit

Permalink
Single node single/multi writer access modes
Browse files Browse the repository at this point in the history
  • Loading branch information
chrishenzie committed May 7, 2021
1 parent c21c4bf commit b17438c
Show file tree
Hide file tree
Showing 3 changed files with 307 additions and 245 deletions.
15 changes: 15 additions & 0 deletions csi.proto
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,14 @@ message VolumeCapability {
// Can be published as read/write at multiple nodes
// simultaneously.
MULTI_NODE_MULTI_WRITER = 5;

// Can only be published once as read/write at a single worklad on
// a single node, at any given time.
SINGLE_NODE_SINGLE_WRITER = 6 [(alpha_enum_value) = true];

// Can be published as read/write at multiple workloads on a
// single node simultaneously.
SINGLE_NODE_MULTI_WRITER = 7 [(alpha_enum_value) = true];
}

// This field is REQUIRED.
Expand Down Expand Up @@ -1044,6 +1052,10 @@ message ControllerServiceCapability {
// This enables COs to, for example, fetch per volume
// condition after a volume is provisioned.
GET_VOLUME = 12 [(alpha_enum_value) = true];

// Indicates the SP supports the SINGLE_NODE_MULTI_WRITER access
// mode.
SINGLE_NODE_MULTI_WRITER = 13 [(alpha_enum_value) = true];
}

Type type = 1;
Expand Down Expand Up @@ -1476,6 +1488,9 @@ message NodeServiceCapability {
// Note that, for alpha, `VolumeCondition` is intended to be
// informative for humans only, not for automation.
VOLUME_CONDITION = 4 [(alpha_enum_value) = true];
// Indicates the SP supports the SINGLE_NODE_MULTI_WRITER access
// mode.
SINGLE_NODE_MULTI_WRITER = 5 [(alpha_enum_value) = true];
}

Type type = 1;
Expand Down
Loading

0 comments on commit b17438c

Please sign in to comment.