Skip to content

Commit ab5b53a

Browse files
committed
Address review comments
1 parent 683b6cc commit ab5b53a

File tree

3 files changed

+19
-13
lines changed

3 files changed

+19
-13
lines changed

csi.proto

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,9 +1070,9 @@ message ControllerExpandVolumeRequest {
10701070
// Volume capability describing how the CO intends to use this volume.
10711071
// This allows SP to determine if volume is being used as a block
10721072
// device or mounted file system. For example - if volume is
1073-
// being used as a block device - the SP MAY choose to skip calling
1074-
// NodeExpandVolume on the node by setting node_expansion_required
1075-
// to false in ControllerExpandVolumeResponse.
1073+
// being used as a block device - the SP MAY set
1074+
// node_expansion_required to false in ControllerExpandVolumeResponse
1075+
// to skip invocation of NodeExpandVolume on the node by the CO.
10761076
// This is an OPTIONAL field.
10771077
VolumeCapability volume_capability = 4;
10781078
}
@@ -1355,7 +1355,9 @@ message NodeExpandVolumeRequest {
13551355
// This allows SP to determine if volume is being used as a block
13561356
// device or mounted file system. For example - if volume is being
13571357
// used as a block device the SP MAY choose to skip expanding the
1358-
// filesystem. If volume_capability is omitted the SP MAY determine
1358+
// filesystem in NodeExpandVolume implementation but still perform
1359+
// rest of the housekeeping needed for expanding the volume. If
1360+
// volume_capability is omitted the SP MAY determine
13591361
// access_type from given volume_path for the volume and perform
13601362
// node expansion. This is an OPTIONAL field.
13611363
VolumeCapability volume_capability = 5;

lib/go/csi/csi.pb.go

Lines changed: 6 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1805,7 +1805,7 @@ This RPC allows the CO to expand the size of a volume.
18051805
This call MAY be made by the CO during any time in the lifecycle of the volume after creation if plugin has `VolumeExpansion.ONLINE` capability.
18061806
If plugin has `EXPAND_VOLUME` node capability, then `NodeExpandVolume` MUST be called after successful `ControllerExpandVolume` and `node_expansion_required` in `ControllerExpandVolumeResponse` is `true`.
18071807

1808-
If specified the `volume_capability` in `ControllerExpandVolumeRequest` should be same as what CO would pass in `ControllerPublishVolumeRequest`.
1808+
If specified, the `volume_capability` in `ControllerExpandVolumeRequest` should be same as what CO would pass in `ControllerPublishVolumeRequest`.
18091809

18101810
If the plugin has only `VolumeExpansion.OFFLINE` expansion capability and volume is currently published or available on a node then `ControllerExpandVolume` MUST be called ONLY after either:
18111811
- The plugin has controller `PUBLISH_UNPUBLISH_VOLUME` capability and `ControllerUnpublishVolume` has been invoked successfully.
@@ -1851,9 +1851,9 @@ message ControllerExpandVolumeRequest {
18511851
// Volume capability describing how the CO intends to use this volume.
18521852
// This allows SP to determine if volume is being used as a block
18531853
// device or mounted file system. For example - if volume is
1854-
// being used as a block device - the SP MAY choose to skip calling
1855-
// NodeExpandVolume on the node by setting node_expansion_required
1856-
// to false in ControllerExpandVolumeResponse.
1854+
// being used as a block device - the SP MAY set
1855+
// node_expansion_required to false in ControllerExpandVolumeResponse
1856+
// to skip invocation of NodeExpandVolume on the node by the CO.
18571857
// This is an OPTIONAL field.
18581858
VolumeCapability volume_capability = 4;
18591859
}
@@ -2394,7 +2394,9 @@ message NodeExpandVolumeRequest {
23942394
// This allows SP to determine if volume is being used as a block
23952395
// device or mounted file system. For example - if volume is being
23962396
// used as a block device the SP MAY choose to skip expanding the
2397-
// filesystem. If volume_capability is omitted the SP MAY determine
2397+
// filesystem in NodeExpandVolume implementation but still perform
2398+
// rest of the housekeeping needed for expanding the volume. If
2399+
// volume_capability is omitted the SP MAY determine
23982400
// access_type from given volume_path for the volume and perform
23992401
// node expansion. This is an OPTIONAL field.
24002402
VolumeCapability volume_capability = 5;

0 commit comments

Comments
 (0)