Skip to content

Conversation

@dharmit
Copy link
Contributor

@dharmit dharmit commented Feb 24, 2025

  • Ignore namespace delete operation

  • Prevent deletion of local and fleet-local namespaces

  • Prevent deletion of local cluster

It prevents deletion of both clusters.provisioning.cattle.io and cluster.management.cattle.io resources of the named local.

  • Fixes to tests based on CI feedback

Issue:

Fixes: rancher/rancher#48305

Problem

Solution

CheckList

  • Test
  • Docs

* Ignore namespace delete operation

Signed-off-by: Dharmit Shah <dharmit.shah@suse.com>

* Prevent deletion of `local` and `fleet-local` namespaces

Signed-off-by: Dharmit Shah <dharmit.shah@suse.com>

* Prevent deletion of local cluster

It prevents deletion of both clusters.provisioning.cattle.io and
cluster.management.cattle.io resources of the named local.

* Fixes to tests based on CI feedback

---------

Signed-off-by: Dharmit Shah <dharmit.shah@suse.com>
@dharmit dharmit requested a review from a team as a code owner February 24, 2025 14:12
@dharmit dharmit changed the title Prevent deletion of namespaces and cluster (#651) [release/v0.5] Prevent deletion of namespaces and cluster (#651) Feb 25, 2025
@dharmit dharmit merged commit a61a17a into rancher:release/v0.5 Mar 6, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants