Skip to content

PVC are removed when deleting RabbitmqCluster despite persistentVolumeClaimRetentionPolicy #1992

Description

@antoineozenne

Describe the bug

The PVC are removed when deleting RabbitmqCluster despite persistentVolumeClaimRetentionPolicy.

To Reproduce

Steps to reproduce the behavior:

  1. Deploy a RabbitmqCluster with:
override:
  statefulSet:
    spec:
      persistentVolumeClaimRetentionPolicy:
        whenDeleted: Retain
        whenScaled: Retain
  1. Delete the RabbitmqCluster
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingnever-staleIssue or PR marked to never go stale

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions