Skip to content

Commit c62adb3

Browse files
xing-yangjieyu
authored andcommitted
Rename ACCESSIBILITY_CONSTRAINTS to VOLUME_ACCESSIBILITY_CONSTRAINTS
This PR renames ACCESSIBILITY_CONSTRAINTS to VOLUME_ACCESSIBILITY_CONSTRAINTS in preparation for adding topology support for snapshots.
1 parent 86aa4ce commit c62adb3

File tree

3 files changed

+310
-309
lines changed

3 files changed

+310
-309
lines changed

csi.proto

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -130,13 +130,13 @@ message PluginCapability {
130130
// as specific RPCs as indicated by ControllerGetCapabilities.
131131
CONTROLLER_SERVICE = 1;
132132

133-
// ACCESSIBILITY_CONSTRAINTS indicates that the volumes for this
134-
// plugin may not be equally accessible by all nodes in the
133+
// VOLUME_ACCESSIBILITY_CONSTRAINTS indicates that the volumes for
134+
// this plugin may not be equally accessible by all nodes in the
135135
// cluster. The CO MUST use the topology information returned by
136136
// CreateVolumeRequest along with the topology information
137137
// returned by NodeGetInfo to ensure that a given volume is
138138
// accessible from a given node when scheduling workloads.
139-
ACCESSIBILITY_CONSTRAINTS = 2;
139+
VOLUME_ACCESSIBILITY_CONSTRAINTS = 2;
140140
}
141141
Type type = 1;
142142
}
@@ -235,10 +235,10 @@ message CreateVolumeRequest {
235235
// topological accessibility information supported by the SP.
236236
// This field is OPTIONAL.
237237
// This field SHALL NOT be specified unless the SP has the
238-
// ACCESSIBILITY_CONSTRAINTS plugin capability.
238+
// VOLUME_ACCESSIBILITY_CONSTRAINTS plugin capability.
239239
// If this field is not specified and the SP has the
240-
// ACCESSIBILITY_CONSTRAINTS plugin capability, the SP MAY choose
241-
// where the provisioned volume is accessible from.
240+
// VOLUME_ACCESSIBILITY_CONSTRAINTS plugin capability, the SP MAY
241+
// choose where the provisioned volume is accessible from.
242242
TopologyRequirement accessibility_requirements = 7;
243243
}
244244

@@ -372,7 +372,7 @@ message Volume {
372372
// Specifies where (regions, zones, racks, etc.) the provisioned
373373
// volume is accessible from.
374374
// A plugin that returns this field MUST also set the
375-
// ACCESSIBILITY_CONSTRAINTS plugin capability.
375+
// VOLUME_ACCESSIBILITY_CONSTRAINTS plugin capability.
376376
// An SP MAY specify multiple topologies to indicate the volume is
377377
// accessible from multiple locations.
378378
// COs MAY use this information along with the topology information
@@ -736,7 +736,7 @@ message GetCapacityRequest {
736736
// `accessible_topology`. This is the same as the
737737
// `accessible_topology` the CO returns in a `CreateVolumeResponse`.
738738
// This field is OPTIONAL. This field SHALL NOT be set unless the
739-
// plugin advertises the ACCESSIBILITY_CONSTRAINTS capability.
739+
// plugin advertises the VOLUME_ACCESSIBILITY_CONSTRAINTS capability.
740740
Topology accessible_topology = 3;
741741
}
742742

@@ -1152,7 +1152,7 @@ message NodeGetInfoResponse {
11521152
// Specifies where (regions, zones, racks, etc.) the node is
11531153
// accessible from.
11541154
// A plugin that returns this field MUST also set the
1155-
// ACCESSIBILITY_CONSTRAINTS plugin capability.
1155+
// VOLUME_ACCESSIBILITY_CONSTRAINTS plugin capability.
11561156
// COs MAY use this information along with the topology information
11571157
// returned in CreateVolumeResponse to ensure that a given volume is
11581158
// accessible from a given node when scheduling workloads.

0 commit comments

Comments
 (0)