Skip to content

Commit a8b167a

Browse files
authored
Merge pull request #47282 from deepakkinni/doc_update_v3
Doc update for Persistent Volumes
2 parents 6156fd9 + 3b9ca42 commit a8b167a

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

content/en/docs/concepts/storage/persistent-volumes.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -253,12 +253,15 @@ However, the particular path specified in the custom recycler Pod template in th
253253
Finalizers can be added on a PersistentVolume to ensure that PersistentVolumes
254254
having `Delete` reclaim policy are deleted only after the backing storage are deleted.
255255

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.
259259

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:
262265

263266
```shell
264267
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
317320
the `kubernetes.io/pv-controller` finalizer is replaced by the
318321
`external-provisioner.volume.kubernetes.io/finalizer` finalizer.
319322

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+
320328
### Reserving a PersistentVolume
321329

322330
The control plane can [bind PersistentVolumeClaims to matching PersistentVolumes](#binding)

0 commit comments

Comments
 (0)