Skip to content

fix: unstick RootSyncs when another RootSync takes over their implicit Namespaces - #2349

Open
tiffanny29631 wants to merge 1 commit into
GoogleContainerTools:mainfrom
tiffanny29631:fix-knv2006-implicit-ns-handoff
Open

tiffanny29631 wants to merge 1 commit into
GoogleContainerTools:mainfrom
tiffanny29631:fix-knv2006-implicit-ns-handoff

Conversation

@tiffanny29631

Copy link
Copy Markdown
Contributor

No description provided.

@google-oss-prow

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from tiffanny29631. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tiffanny29631
tiffanny29631 force-pushed the fix-knv2006-implicit-ns-handoff branch from 184bdcb to e7d3977 Compare November 30, 2026 20:54
The namespace safeguard (KNV2006) fired when a RootSync stopped declaring
its Namespaces even though it still managed objects in them. This happens
when a RootSync creates implicit Namespaces and another RootSync later
declares them: the first RootSync drops from 2 declared Namespaces to 0
and stays stuck on KNV2006 until the reconciler restarts.

Only report KNV2006 if none of the previously declared Namespaces are
still used by objects in the new source. A misread or empty source has no
objects in those Namespaces, so it is still caught.
@tiffanny29631
tiffanny29631 force-pushed the fix-knv2006-implicit-ns-handoff branch from e7d3977 to f3badfa Compare November 30, 2026 22:29
@tiffanny29631

Copy link
Copy Markdown
Contributor Author

/retest

This branch has not been deployed

No deployments
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.

1 participant