pvc not removed when the Dragonfly instance is deleted.
Jean-Daniel opened this issue · comments
Deleting a DragonFly instance should remove the PVC created by the operator.
If the user has sensible data on it, they should be attached to PV with a persistentVolumeReclaimPolicy: Retain
so it should still be safe to delete the PVC
.
Step to reproduce:
- Install operator + a DragonFly instance with snapshot over PVC.
- Delete the Dragonfly instance.
The operator properly cleanup the StatefulSet, but it does not delete the PVC.
This is the expected behaviour with statefulsets and persistentVolumeClaimSpec. In the same as you scale up to 4 replicas and then you scale down to 3, the fourth pvc is not deleted and it's reused if you scale up to 4 again.