Skip to content

Commit 76881f6

Browse files
committed
Address review comments
1 parent 86ce098 commit 76881f6

File tree

3 files changed

+390
-395
lines changed

3 files changed

+390
-395
lines changed

csi.proto

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ service Controller {
9696
rpc ControllerExpandVolume (ControllerExpandVolumeRequest)
9797
returns (ControllerExpandVolumeResponse) {}
9898

99-
rpc GetVolume (GetVolumeRequest)
100-
returns (GetVolumeResponse) {
99+
rpc ControllerGetVolume (ControllerGetVolumeRequest)
100+
returns (ControllerGetVolumeResponse) {
101101
option (alpha_method) = true;
102102
}
103103
}
@@ -855,10 +855,11 @@ message ListVolumesResponse {
855855
// reported by the SP. The CO MUST be resilient to that.
856856
repeated string published_node_ids = 1;
857857

858-
// volume_condition shows error conditions reported by the SP.
858+
// volume_condition shows information about the current health of
859+
// the volume.
860+
// This field is OPTIONAL.
859861
// This field MUST be specified if the
860862
// LIST_VOLUMES_VOLUME_CONDITION controller capability is supported.
861-
// This field is OPTIONAL.
862863
VolumeCondition volume_condition = 2 [(alpha_field) = true];
863864
}
864865

@@ -882,31 +883,34 @@ message ListVolumesResponse {
882883
// An empty string is equal to an unspecified field value.
883884
string next_token = 2;
884885
}
885-
message GetVolumeRequest {
886+
message ControllerGetVolumeRequest {
886887
option (alpha_message) = true;
887888

888889
// Identity information for a specific volume. This field is
889-
// REQUIRED. GetVolume will return with current volume information.
890+
// REQUIRED. ControllerGetVolume will return with current
891+
// volume information.
890892
string volume_id = 1;
891893
}
892894

893-
message GetVolumeResponse {
895+
message ControllerGetVolumeResponse {
894896
option (alpha_message) = true;
895897

896898
message VolumeStatus{
897899
// A list of all `node_id` of nodes that the volume in this entry
898900
// is controller published on.
899901
// This field is OPTIONAL. If it is not specified and the SP has
900-
// the GET_VOLUME_PUBLISHED_NODES controller capability, the CO
902+
// the PUBLISH_UNPUBLISH_VOLUME controller capability, the CO
901903
// MAY assume the volume is not controller published to any nodes.
902904
// If the field is not specified and the SP does not have the
903-
// GET_VOLUME_PUBLISHED_NODES controller capability, the CO MUST
905+
// PUBLISH_UNPUBLISH_VOLUME controller capability, the CO MUST
904906
// not interpret this field.
905907
// published_node_ids MAY include nodes not published to or
906908
// reported by the SP. The CO MUST be resilient to that.
907909
repeated string published_node_ids = 1;
908910

909-
// volume_condition shows error conditions reported by the SP.
911+
// volume_condition shows information about the current health of
912+
// the volume.
913+
// This field is OPTIONAL.
910914
// This field MUST be specified if the
911915
// GET_VOLUME_VOLUME_CONDITION controller capability is supported.
912916
VolumeCondition volume_condition = 2;
@@ -995,19 +999,14 @@ message ControllerServiceCapability {
995999
LIST_VOLUMES_PUBLISHED_NODES = 10;
9961000

9971001
// Indicates the SP supports the
998-
// ListVolumesResponse.entry.volume_condition field
999-
LIST_VOLUMES_VOLUME_CONDITION = 11 [(alpha_enum_value) = true];
1002+
// ListVolumesResponse.entry.status.volume_condition field
1003+
// if SP also supports LIST_VOLUMES capability, or supports the
1004+
// ControllerGetVolumeResponse.status.volume_condition field
1005+
// if SP also supports GET_VOLUME capability
1006+
VOLUME_CONDITION = 11 [(alpha_enum_value) = true];
10001007

1001-
// Indicates the SP supports the GetVolume RPC
1008+
// Indicates the SP supports the ControllerGetVolume RPC
10021009
GET_VOLUME = 12 [(alpha_enum_value) = true];
1003-
1004-
// Indicates the SP supports the
1005-
// GetVolumeResponse.volume_condition field
1006-
GET_VOLUME_VOLUME_CONDITION = 13 [(alpha_enum_value) = true];
1007-
1008-
// Indicates the SP supports the
1009-
// GetVolumesResponse.published_node_ids field
1010-
GET_VOLUME_PUBLISHED_NODES = 14 [(alpha_enum_value) = true];
10111010
}
10121011

10131012
Type type = 1;
@@ -1367,8 +1366,7 @@ message VolumeCondition {
13671366
option (alpha_message) = true;
13681367

13691368
// Indicates the health condition of a volume is not normal.
1370-
// This field is OPTIONAL. If not present, it indicates the
1371-
// health condition is unknown.
1369+
// This field is REQUIRED.
13721370
.google.protobuf.BoolValue abnormal = 1;
13731371

13741372
// The message describing the health condition of the volume.

0 commit comments

Comments
 (0)