Allow configuration of reclaim policy in StorageClass #38192
Closed
Description
Use case: as Kubernetes admin I want to define a StorageClass that provisions PVs with PersistentVolumeReclaimPolicy = "Retain"
so users don't loose their data when they accidentally delete their PVCs.
API changes:
- Either "magic" annotation
kubernetes.io/reclaim-policy: Retain
- Or a new StorageClass field
sc.PersistentVolumeReclaimPolicy: Retain
Requested actions:
- Update the API.
- Update internal provisioning logic to respect this new annotation/field.
- Update docs.
- Announce that external provisioners need to respect this new annotation/field.
All these items are fairly easy if we agree on the design.
@kubernetes/sig-storage