Skip to content

Allow configuration of reclaim policy in StorageClass #38192

Closed
@jsafrane

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

Metadata

Assignees

Labels

sig/storageCategorizes an issue or PR as relevant to SIG Storage.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions