The DragonflyDB operator leaves around the PVCs when a user deletes the Dragonfly resource. This is because when it deletes the StatefulSet, Kubernetes leaves the PVCs as the persistentVolumeClaimRetentionPolicy field of the StatefulSet defaults to Retain
Can you please expose the ability to set this to Delete on both whenDeleted and whenScaled ? The default can still be Retain but it would be nice to be able to set it to avoid having to write logic to clean up PVCs.
This functionality used to be behind a feature gate, but it's in GA as of 1.32 so no reason not to expose/support it, its not going anywhere.
The DragonflyDB operator leaves around the PVCs when a user deletes the Dragonfly resource. This is because when it deletes the StatefulSet, Kubernetes leaves the PVCs as the persistentVolumeClaimRetentionPolicy field of the StatefulSet defaults to Retain
Can you please expose the ability to set this to Delete on both
whenDeletedandwhenScaled? The default can still be Retain but it would be nice to be able to set it to avoid having to write logic to clean up PVCs.This functionality used to be behind a feature gate, but it's in GA as of 1.32 so no reason not to expose/support it, its not going anywhere.