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 local cluster (#551) #593

Merged
merged 2 commits into from
Feb 5, 2025

Conversation

dharmit
Copy link
Contributor

@dharmit dharmit commented Jan 15, 2025

  • Prevent deletion of local cluster

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

  • Prevent deletion of local and fleet-local namespaces

  • Parameter type grouping


Issue: rancher/rancher#48305

Problem

Solution

CheckList

  • Test
  • Docs

* Prevent deletion of `local` cluster

It prevents deletion of both clusters.provisioning.cattle.io and
cluster.management.cattle.io of the name `local`.

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

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

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

* Parameter type grouping

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

---------

Signed-off-by: Dharmit Shah <[email protected]>
@dharmit dharmit requested a review from a team as a code owner January 15, 2025 11:53
@dharmit
Copy link
Contributor Author

dharmit commented Jan 17, 2025

The unit test is failing because of the change introduced here. Discussing this with the team to figure a way ahead.

The unit test change made in
rancher@ac777f7#diff-27385eb9113237f9a5e650a62ae7a3cc56fedf10b78449f890670221804d344fR172-R174
caused the unit tests to fail. This commit backports the `if` condition
from that commit.
Copy link

@snasovich snasovich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Materially the same as #551, LGTM

@crobby crobby merged commit 61b0e74 into rancher:release/v0.5 Feb 5, 2025
2 checks passed
crobby added a commit that referenced this pull request Feb 6, 2025
crobby added a commit that referenced this pull request Feb 6, 2025
@dharmit dharmit deleted the 551-v0.5 branch February 7, 2025 07:18
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