Skip to content

fix: unblock cluster deletion from legacy finalizers#36

Merged
wallyxjh merged 1 commit into
labring:fix/v0.9.3from
im0x0ing:fix/v0.9.3-deleting-finalizer-blockers
Jun 9, 2026
Merged

fix: unblock cluster deletion from legacy finalizers#36
wallyxjh merged 1 commit into
labring:fix/v0.9.3from
im0x0ing:fix/v0.9.3-deleting-finalizer-blockers

Conversation

@im0x0ing

@im0x0ing im0x0ing commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

Fix two legacy finalizer cases that can block Cluster deletion on v0.9.3:

  • Include PodDisruptionBudget in the Component deletion plan so legacy PDBs with cluster.kubeblocks.io/finalizer can be cleaned up.
  • Remove orphaned dataprotection.kubeblocks.io/finalizer from failed backup Jobs when the owning Backup no longer exists.

Also sync PDB RBAC into both generated RBAC and Helm chart RBAC.

Why

Some old clusters can stay in Deleting even after Pods, InstanceSets, PVCs, Jobs, and other visible resources are gone. Two observed blockers were:

  • PDB owned by Component, already deleting, still holding cluster.kubeblocks.io/finalizer.
  • failed backup Job, already deleting, still holding dataprotection.kubeblocks.io/finalizer, while the Backup object no longer exists.

@wallyxjh wallyxjh merged commit ba4cf56 into labring:fix/v0.9.3 Jun 9, 2026
3 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants