Skip to content

Commit

Permalink
Spec ModifyVolume for QoS kep-3751
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnylovestiramisu committed Jun 13, 2023
1 parent b01039c commit fbdace7
Show file tree
Hide file tree
Showing 3 changed files with 536 additions and 317 deletions.
28 changes: 28 additions & 0 deletions csi.proto
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ service Controller {
returns (ControllerGetVolumeResponse) {
option (alpha_method) = true;
}

rpc ControllerModifyVolume (ModifyVolumeRequest)
returns (ModifyVolumeResponse) {
option (alpha_method) = true;
}
}

service GroupController {
Expand Down Expand Up @@ -376,6 +381,10 @@ message CreateVolumeRequest {
// VOLUME_ACCESSIBILITY_CONSTRAINTS plugin capability, the SP MAY
// choose where the provisioned volume is accessible from.
TopologyRequirement accessibility_requirements = 7;

// This field is OPTIONAL. This allows the CO to specify the
// volume performance class parameters to apply.
map<string, string> mutable_parameters = 8;
}

// Specifies what source the volume will be created from. One of the
Expand Down Expand Up @@ -974,6 +983,21 @@ message ControllerGetVolumeResponse {
// This field is REQUIRED.
VolumeStatus status = 2;
}
message ModifyVolumeRequest {
option (alpha_message) = true;

// Contains identity information for the existing volume.
// This field is REQUIRED.
string volume_id = 1;
// This field is OPTIONAL.This allows the CO to specify the
// mutable parameters to apply.
map<string, string> mutable_parameters = 2;
}

message ModifyVolumeResponse {
option (alpha_message) = true;
}

message GetCapacityRequest {
// If specified, the Plugin SHALL report the capacity of the storage
// that can be used to provision volumes that satisfy ALL of the
Expand Down Expand Up @@ -1113,6 +1137,10 @@ message ControllerServiceCapability {
// SINGLE_NODE_SINGLE_WRITER and/or SINGLE_NODE_MULTI_WRITER are
// supported, in order to permit older COs to continue working.
SINGLE_NODE_MULTI_WRITER = 13 [(alpha_enum_value) = true];

// Indicates the SP supports modifying volume with mutable
// parameters. See ModifyVolume for details.
MODIFY_VOLUME = 14 [(alpha_enum_value) = true];
}

Type type = 1;
Expand Down
Loading

0 comments on commit fbdace7

Please sign in to comment.