website/content/en/docs/reference/command-line-tools-reference/feature-gates/StatefulSetAutoDeletePVC.md

27 lines
650 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"
toVersion: "1.31"
- stage: stable
defaultValue: true
fromVersion: "1.32"
---
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.