Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[release/v0.5] Prevent deletion of namespaces and cluster (#651) #725

Open
wants to merge 1 commit into
base: release/v0.5
Choose a base branch
from

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:

Problem

Solution

CheckList

  • Test
  • Docs

* Ignore namespace delete operation

Signed-off-by: Dharmit Shah <[email protected]>

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

Signed-off-by: Dharmit Shah <[email protected]>

* 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 <[email protected]>
@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
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.

1 participant