Skip to content

Delete Namespace: allow to delete protected namespace in the cluster which is not in the list of namespace cluster #7851

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alexshtin
Copy link
Contributor

@alexshtin alexshtin commented Jun 2, 2025

What changed?

Delete Namespace: allow to delete protected namespace in the cluster which is not in the list of namespace cluster.

Why?

If namespace was successfully removed from the cluster, it is ok to delete it event if it is protected.

How did you test it?

  • built
  • run locally and tested manually
  • covered by existing tests
  • added new unit test(s)
  • added new functional test(s)

Potential risks

This is nondeterministic change for DeleteNamespace workflow (local activity used to be executed always but now only when current cluster is in the list of clusters) but this is very short lived workflow. Chances to catch NDE is very minimal.

…which is not in the list of namespace cluster
@alexshtin alexshtin requested a review from a team as a code owner June 2, 2025 23:32
@alexshtin alexshtin requested review from meiliang86 and alice-yin June 2, 2025 23:36
Copy link
Member

@laniehei laniehei left a comment

Choose a reason for hiding this comment

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

nit: add comment about what this is checking (this namespace has been moved elsewhere so we can ignore this check)

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.

2 participants