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 24, 2021
1 parent 5914b37 commit 2cc8efe
Show file tree
Hide file tree
Showing 3 changed files with 309 additions and 246 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 workload
// 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 2cc8efe

Please sign in to comment.