kubernetes v1.37
StatefulSetPersistentVolumeClaimRetentionPolicy.whenDeleted
WhenDeleted specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is deleted. The default policy of `Retain` causes PVCs to not be affected by StatefulSet deletion. The `Delete` policy causes those PVCs to be deleted.
| Field / Type | Description |
|---|---|
StatefulSetPersistentVolumeClaimRetentionPolicy.whenDeleted | WhenDeleted specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is deleted. The default policy of `Retain` causes PVCs to not be affected by StatefulSet deletion. The `Delete` policy causes those PVCs to be deleted. |