Describe the bug
The PVC are removed when deleting RabbitmqCluster despite persistentVolumeClaimRetentionPolicy.
To Reproduce
Steps to reproduce the behavior:
- Deploy a RabbitmqCluster with:
override:
statefulSet:
spec:
persistentVolumeClaimRetentionPolicy:
whenDeleted: Retain
whenScaled: Retain
- Delete the RabbitmqCluster
- See that the PVC are removed
Expected behavior
The PVC should not be removed when deleting a RabbitmqCluster when persistentVolumeClaimRetentionPolicy.whenDeleted=Retain.
Version and environment information
- RabbitMQ: 4.1.3
- RabbitMQ Cluster Operator: 2.17.0
- Kubernetes: v1.30.9
- Cloud provider: AKS
Additional context
This issue follows #855. persistentVolumeClaimRetentionPolicy is now implemented, but doesn't work.