persistentVolumeClaimRetentionPolicy for StatefulSet in OpenShift Container Platform 4 not working
Issue
- We creating a
statefulset
using the https://docs.openshift.com/container-platform/4.12/rest_api/workloads_apis/statefulset-apps-v1.html#spec-persistentvolumeclaimretentionpolicy settingwhenDeleted: Delete
, we expect when deleting thestatefulset
that also the created PVC + related PV will be deleted. This though is not happening.
Environment
- Red Hat OpenShift Container Platform (RHOCP) before 4.14
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.