Skip to content

Commit d68da7a

Browse files
akutzjieyu
authored andcommitted
Remove Trailing Whitespace from the Spec
This patch removes trailing whitespace from the CSI specification.
1 parent 2dcd504 commit d68da7a

File tree

2 files changed

+50
-50
lines changed

2 files changed

+50
-50
lines changed

csi.proto

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ message CreateVolumeRequest {
112112

113113
// The suggested name for the storage space. This field is REQUIRED.
114114
// It serves two purposes:
115-
// 1) Idempotency - This name is generated by the CO to achieve
115+
// 1) Idempotency - This name is generated by the CO to achieve
116116
// idempotency. If `CreateVolume` fails, the volume may or may not
117117
// be provisioned. In this case, the CO may call `CreateVolume`
118118
// again, with the same name, to ensure the volume exists. The
@@ -141,7 +141,7 @@ message CreateVolumeRequest {
141141
// not supported by the Plugin, the call SHALL fail. This field is
142142
// REQUIRED.
143143
repeated VolumeCapability volume_capabilities = 4;
144-
144+
145145
// Plugin specific parameters passed in as opaque key-value pairs.
146146
// This field is OPTIONAL. The Plugin is responsible for parsing and
147147
// validating these parameters. COs will treat these as opaque.
@@ -229,7 +229,7 @@ message VolumeCapability {
229229
// `required_bytes` and `limit_bytes` can be set to the same value. At
230230
// least one of the these fields MUST be specified.
231231
message CapacityRange {
232-
// Volume must be at least this big.
232+
// Volume must be at least this big.
233233
uint64 required_bytes = 1;
234234

235235
// Volume must not be bigger than this.
@@ -260,7 +260,7 @@ message VolumeInfo {
260260
// The total bytes of a serialized VolumeHandle must be less than 1 MiB.
261261
message VolumeHandle {
262262
// ID is the identity of the provisioned volume specified by the
263-
// Plugin. This field is REQUIRED.
263+
// Plugin. This field is REQUIRED.
264264
// This information SHALL NOT be considered sensitive such that, for
265265
// example, the CO MAY generate log messages that include this data.
266266
string id = 1;
@@ -320,7 +320,7 @@ message ControllerPublishVolumeRequest {
320320
// The handle of the volume to be used on a node.
321321
// This field is REQUIRED.
322322
VolumeHandle volume_handle = 2;
323-
323+
324324
// The ID of the node. This field is OPTIONAL. The CO SHALL set (or
325325
// clear) this field to match the `NodeID` returned by `GetNodeID`.
326326
// `GetNodeID` is allowed to omit `NodeID` from a successful `Result`;
@@ -414,7 +414,7 @@ message ValidateVolumeCapabilitiesRequest {
414414
Version version = 1;
415415

416416
// The information about the volume to check. This is a REQUIRED
417-
// field.
417+
// field.
418418
VolumeInfo volume_info = 2;
419419

420420
// The capabilities that the CO wants to check for the volume. This
@@ -455,10 +455,10 @@ message ListVolumesRequest {
455455
// returned.
456456
uint32 max_entries = 2;
457457

458-
// A token to specify where to start paginating. Set this field to
458+
// A token to specify where to start paginating. Set this field to
459459
// `next_token` returned by a previous `ListVolumes` call to get the
460460
// next page of entries. This field is OPTIONAL.
461-
string starting_token = 3;
461+
string starting_token = 3;
462462
}
463463

464464
message ListVolumesResponse {
@@ -469,7 +469,7 @@ message ListVolumesResponse {
469469

470470
repeated Entry entries = 1;
471471

472-
// This token allows you to get the next page of entries for
472+
// This token allows you to get the next page of entries for
473473
// `ListVolumes` request. If the number of entries is larger than
474474
// `max_entries`, use the `next_token` as a value for the
475475
// `starting_token` field in the next `ListVolumes` request. This
@@ -548,12 +548,12 @@ message ControllerServiceCapability {
548548
CREATE_DELETE_VOLUME = 1;
549549
PUBLISH_UNPUBLISH_VOLUME = 2;
550550
LIST_VOLUMES = 3;
551-
GET_CAPACITY = 4;
551+
GET_CAPACITY = 4;
552552
}
553553

554554
Type type = 1;
555555
}
556-
556+
557557
oneof type {
558558
// RPC that the controller supports.
559559
RPC rpc = 1;
@@ -568,7 +568,7 @@ message NodePublishVolumeRequest {
568568
// The handle of the volume to publish. This field is REQUIRED.
569569
VolumeHandle volume_handle = 2;
570570

571-
// The CO SHALL set this field to the value returned by
571+
// The CO SHALL set this field to the value returned by
572572
// `ControllerPublishVolume` if the corresponding Controller Plugin
573573
// has `PUBLISH_UNPUBLISH_VOLUME` controller capability, and SHALL be
574574
// left unset if the corresponding Controller Plugin does not have
@@ -612,7 +612,7 @@ message NodeUnpublishVolumeRequest {
612612
// The handle of the volume. This field is REQUIRED.
613613
VolumeHandle volume_handle = 2;
614614

615-
// The path at which the volume was published. It MUST be an absolute
615+
// The path at which the volume was published. It MUST be an absolute
616616
// path in the root filesystem of the process serving this request.
617617
// This is a REQUIRED field.
618618
string target_path = 3;
@@ -640,10 +640,10 @@ message GetNodeIDRequest {
640640

641641
message GetNodeIDResponse {
642642
message Result {
643-
// The ID of the node which SHALL be used by CO in
643+
// The ID of the node which SHALL be used by CO in
644644
// `ControllerPublishVolume`. This is an OPTIONAL field. If unset,
645645
// the CO SHALL leave the `node_id` field unset in
646-
// `ControllerPublishVolume`.
646+
// `ControllerPublishVolume`.
647647
NodeID node_id = 1;
648648
}
649649

@@ -699,7 +699,7 @@ message NodeServiceCapability {
699699

700700
Type type = 1;
701701
}
702-
702+
703703
oneof type {
704704
// RPC that the controller supports.
705705
RPC rpc = 1;
@@ -841,7 +841,7 @@ message Error {
841841
// retrying.
842842
INVALID_PARAMETER_VALUE = 7;
843843
}
844-
844+
845845
// Machine parsable error code.
846846
CreateVolumeErrorCode error_code = 1;
847847

@@ -900,7 +900,7 @@ message Error {
900900
// succeeded.
901901
VOLUME_DOES_NOT_EXIST = 4;
902902
}
903-
903+
904904
// Machine parsable error code.
905905
DeleteVolumeErrorCode error_code = 1;
906906

@@ -1007,7 +1007,7 @@ message Error {
10071007
// retrying.
10081008
INVALID_NODE_ID = 8;
10091009
}
1010-
1010+
10111011
// Machine parsable error code.
10121012
ControllerPublishVolumeErrorCode error_code = 1;
10131013

@@ -1098,7 +1098,7 @@ message Error {
10981098
// retrying.
10991099
NODE_ID_REQUIRED = 8;
11001100
}
1101-
1101+
11021102
ControllerUnpublishVolumeErrorCode error_code = 1;
11031103
string error_description = 2;
11041104
}
@@ -1136,7 +1136,7 @@ message Error {
11361136
// retrying.
11371137
INVALID_VOLUME_INFO = 5;
11381138
}
1139-
1139+
11401140
ValidateVolumeCapabilitiesErrorCode error_code = 1;
11411141
string error_description = 2;
11421142
}
@@ -1190,7 +1190,7 @@ message Error {
11901190
// retrying.
11911191
INVALID_VOLUME_HANDLE = 7;
11921192
}
1193-
1193+
11941194
NodePublishVolumeErrorCode error_code = 1;
11951195
string error_description = 2;
11961196
}
@@ -1241,7 +1241,7 @@ message Error {
12411241
// retrying.
12421242
INVALID_VOLUME_HANDLE = 4;
12431243
}
1244-
1244+
12451245
NodeUnpublishVolumeErrorCode error_code = 1;
12461246
string error_description = 2;
12471247
}
@@ -1262,7 +1262,7 @@ message Error {
12621262
BAD_PLUGIN_CONFIG = 1;
12631263
MISSING_REQUIRED_HOST_DEPENDENCY = 2;
12641264
}
1265-
1265+
12661266
ProbeNodeErrorCode error_code = 1;
12671267
string error_description = 2;
12681268
}
@@ -1282,7 +1282,7 @@ message Error {
12821282
BAD_PLUGIN_CONFIG = 1;
12831283
MISSING_REQUIRED_HOST_DEPENDENCY = 2;
12841284
}
1285-
1285+
12861286
GetNodeIDErrorCode error_code = 1;
12871287
string error_description = 2;
12881288
}

0 commit comments

Comments
 (0)