Skip to content

Commit fbdace7

Browse files
Spec ModifyVolume for QoS kep-3751
1 parent b01039c commit fbdace7

File tree

3 files changed

+536
-317
lines changed

3 files changed

+536
-317
lines changed

csi.proto

+28
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,11 @@ service Controller {
100100
returns (ControllerGetVolumeResponse) {
101101
option (alpha_method) = true;
102102
}
103+
104+
rpc ControllerModifyVolume (ModifyVolumeRequest)
105+
returns (ModifyVolumeResponse) {
106+
option (alpha_method) = true;
107+
}
103108
}
104109

105110
service GroupController {
@@ -376,6 +381,10 @@ message CreateVolumeRequest {
376381
// VOLUME_ACCESSIBILITY_CONSTRAINTS plugin capability, the SP MAY
377382
// choose where the provisioned volume is accessible from.
378383
TopologyRequirement accessibility_requirements = 7;
384+
385+
// This field is OPTIONAL. This allows the CO to specify the
386+
// volume performance class parameters to apply.
387+
map<string, string> mutable_parameters = 8;
379388
}
380389

381390
// Specifies what source the volume will be created from. One of the
@@ -974,6 +983,21 @@ message ControllerGetVolumeResponse {
974983
// This field is REQUIRED.
975984
VolumeStatus status = 2;
976985
}
986+
message ModifyVolumeRequest {
987+
option (alpha_message) = true;
988+
989+
// Contains identity information for the existing volume.
990+
// This field is REQUIRED.
991+
string volume_id = 1;
992+
// This field is OPTIONAL.This allows the CO to specify the
993+
// mutable parameters to apply.
994+
map<string, string> mutable_parameters = 2;
995+
}
996+
997+
message ModifyVolumeResponse {
998+
option (alpha_message) = true;
999+
}
1000+
9771001
message GetCapacityRequest {
9781002
// If specified, the Plugin SHALL report the capacity of the storage
9791003
// that can be used to provision volumes that satisfy ALL of the
@@ -1113,6 +1137,10 @@ message ControllerServiceCapability {
11131137
// SINGLE_NODE_SINGLE_WRITER and/or SINGLE_NODE_MULTI_WRITER are
11141138
// supported, in order to permit older COs to continue working.
11151139
SINGLE_NODE_MULTI_WRITER = 13 [(alpha_enum_value) = true];
1140+
1141+
// Indicates the SP supports modifying volume with mutable
1142+
// parameters. See ModifyVolume for details.
1143+
MODIFY_VOLUME = 14 [(alpha_enum_value) = true];
11161144
}
11171145

11181146
Type type = 1;

0 commit comments

Comments
 (0)