You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -204,37 +226,6 @@ Cluster administrators can use K8s quota to specify how many PVCs can use a spec
204
226
### CSI API
205
227
The CSI create request will be extended to add mutable parameters. A new ControllerModifyVolume RPC will be added. More details in [CSI Spec PR](https://github.com/container-storage-interface/spec/pull/544).
206
228
207
-
```
208
-
// ControllerServer is the server API for Controller service.
209
-
type ControllerServer interface {
210
-
...
211
-
rpc ControllerModifyVolume (ModifyVolumeRequest)
212
-
returns (ModifyVolumeResponse) {
213
-
option (alpha_method) = true;
214
-
}
215
-
...
216
-
}
217
-
218
-
message ModifyVolumeRequest {
219
-
// Contains identity information for the existing volume.
220
-
// This field is REQUIRED.
221
-
string volume_id = 1
222
-
// This field is OPTIONAL.This allows the CO to specify the
223
-
// mutable parameters to apply.
224
-
map<string, string> mutable_parameters = 2;
225
-
}
226
-
message ModifyVolumeResponse {}
227
-
228
-
message CreateVolumeRequest {
229
-
...
230
-
// See CreateVolumeRequest.parameters.
231
-
// This field is OPTIONAL.
232
-
map<string, string> parameters = 4;
233
-
// This field is OPTIONAL. This allows the CO to specify the
### 4. Add new CSI API ControllerModifyVolume, when there is a change of VolumeAttributesClass in PVC, external-resizer triggers a ControllerModifyVolume operation against a CSI endpoint. A Controller Plugin MUST implement this RPC call if it has MODIFY_VOLUME capability.
421
408
422
409
### 5. Add new operation metrics for ModifyVolume operations
@@ -454,7 +441,7 @@ There are a few conditions that will trigger add/remove pvc finalizers in the Vo
454
441
1. PVC created with a VolumeAttributesClass
455
442
456
443
The **VACObjectInUseProtection admission controller**:
457
-
* Check if the VolumeAttributesClass exists. If not, the PVC will enter the PENDING state because we do not want to impose ordering on object creation
444
+
* Check if the VolumeAttributesClass exists. If not, the PVC will enter the INPROGRESS state because we do not want to impose ordering on object creation
458
445
* Check if this VolumeAttributesClass already has a protection finalizer
459
446
* Add the finalizer to the VolumeAttributesClass if there is none
460
447
2. PVC created with a VolumeAttributesClass being deleted
@@ -480,7 +467,7 @@ For unbound PVs referencing a VAC:
480
467
481
468
1. Unbound PV created with a VolumeAttributesClass
482
469
The **VACObjectInUseProtection admission controller**:
483
-
* Check if the VolumeAttributesClass exists. If not, the PV will enter the PENDING state because we do not want to impose ordering on object creation
470
+
* Check if the VolumeAttributesClass exists. If not, the PV will enter the INPROGRESS state because we do not want to impose ordering on object creation
484
471
* Check if this VolumeAttributesClass already has a protection finalizer
485
472
* Add the finalizer to the VolumeAttributesClass if there is none
486
473
2. PV has a VolumeAttributesClass and this PV is deleted
ModifyVolume is only allowed on bound PVCs. Under the ModifyVolume call, it will pass in the mutable parameters and do the update operation based on the `VolumeAttributesClass` parameters.
0 commit comments