Skip to content

Commit ad053af

Browse files
author
James DeFelice
committed
spec: extend validate volume response
Since `parameters` and `volume_attributes` are complex fields the `Confirmed` message of `ValidateVolumeCapabilitiesResponse` has been extended to report those map entries recognized by the plugin.
1 parent c427ef9 commit ad053af

File tree

3 files changed

+327
-287
lines changed

3 files changed

+327
-287
lines changed

csi.proto

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -656,13 +656,21 @@ message ValidateVolumeCapabilitiesRequest {
656656

657657
message ValidateVolumeCapabilitiesResponse {
658658
message Confirmed {
659+
// Volume attributes validated by the plugin.
660+
// This field is OPTIONAL.
661+
map<string, string> volume_attributes = 1;
662+
659663
// Volume capabilities supported by the plugin.
660664
// This field is REQUIRED.
661-
repeated VolumeCapability volume_capabilities = 1;
665+
repeated VolumeCapability volume_capabilities = 2;
662666

663667
// Topology requirements supported by the plugin.
664668
// This field is OPTIONAL.
665-
TopologyRequirement accessibility_requirements = 2;
669+
TopologyRequirement accessibility_requirements = 3;
670+
671+
// The volume creation parameters validated by the plugin.
672+
// This field is OPTIONAL.
673+
map<string, string> parameters = 4;
666674
}
667675

668676
// Confirmed indicates to the CO the set of capabilities that the

0 commit comments

Comments
 (0)