Skip to content

Expose the ability to configure persistentVolumeClaimRetentionPolicyΒ #340

@robinsla-deshaw

Description

@robinsla-deshaw

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions