Open Jean-Daniel opened 9 months ago
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.
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 thePVC
.Step to reproduce:
The operator properly cleanup the StatefulSet, but it does not delete the PVC.