@@ -253,12 +253,15 @@ However, the particular path specified in the custom recycler Pod template in th
253
253
Finalizers can be added on a PersistentVolume to ensure that PersistentVolumes
254
254
having `Delete` reclaim policy are deleted only after the backing storage are deleted.
255
255
256
- The newly introduced finalizers ` kubernetes.io/pv-controller` and
257
- ` external-provisioner.volume.kubernetes.io/finalizer `
258
- are only added to dynamically provisioned volumes.
256
+ The finalizer `external-provisioner.volume. kubernetes.io/finalizer`(introduced
257
+ in v1.31) is added to both dynamically provisioned and statically provisioned
258
+ CSI volumes.
259
259
260
- The finalizer `kubernetes.io/pv-controller` is added to in-tree plugin volumes.
261
- The following is an example
260
+ The finalizer `kubernetes.io/pv-controller`(introduced in v1.31) is added to
261
+ dynamically provisioned in-tree plugin volumes and skipped for statically
262
+ provisioned in-tree plugin volumes.
263
+
264
+ The following is an example of dynamically provisioned in-tree plugin volume :
262
265
263
266
` ` ` shell
264
267
kubectl describe pv pvc-74a498d6-3929-47e8-8c02-078c1ece4d78
@@ -317,6 +320,11 @@ When the `CSIMigration{provider}` feature flag is enabled for a specific in-tree
317
320
the `kubernetes.io/pv-controller` finalizer is replaced by the
318
321
` external-provisioner.volume.kubernetes.io/finalizer` finalizer.
319
322
323
+ The finalizers ensure that the PV object is removed only after the volume is deleted
324
+ from the storage backend provided the reclaim policy of the PV is `Delete`. This
325
+ also ensures that the volume is deleted from storage backend irrespective of the
326
+ order of deletion of PV and PVC.
327
+
320
328
# ## Reserving a PersistentVolume
321
329
322
330
The control plane can [bind PersistentVolumeClaims to matching PersistentVolumes](#binding)
0 commit comments