website/content/en/docs/reference/command-line-tools-reference/feature-gates/stateful-set-auto-delete-pv...

22 lines
562 B
Markdown

---
title: StatefulSetAutoDeletePVC
content_type: feature_gate
_build:
list: never
render: false
stages:
- stage: alpha
defaultValue: false
fromVersion: "1.23"
toVersion: "1.26"
- stage: beta
defaultValue: true
fromVersion: "1.27"
---
Allows the use of the optional `.spec.persistentVolumeClaimRetentionPolicy` field,
providing control over the deletion of PVCs in a StatefulSet's lifecycle.
See
[PersistentVolumeClaim retention](/docs/concepts/workloads/controllers/statefulset/#persistentvolumeclaim-retention)
for more details.