Garbage collector can create invalid virtual nodes #124378
Labels
kind/bug
Categorizes issue or PR as related to a bug.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
sig/apps
Categorizes an issue or PR as relevant to SIG Apps.
What happened?
Disclaimer: I came across this when studying the GC code, but haven't observed the issue directly (or tried to).
In
GraphBuilder#addDependentToOwners
, a virtual node is created if the owner hasn't been observed in the graph yet. However, it blindly uses the dependent's namespace for this owner node. This will be incorrect if the owner is a non-namespaced resource.See
kubernetes/pkg/controller/garbagecollector/graph_builder.go
Line 411 in 183aca3
I'm reporting this as a kind of low-effort thing as I do not have capacity of interest in resolving this myself. Feel free to close if it doesn't meet community standards.
What did you expect to happen?
How can we reproduce it (as minimally and precisely as possible)?
Anything else we need to know?
Kubernetes version
Cloud provider
OS version
Install tools
Container runtime (CRI) and version (if applicable)
Related plugins (CNI, CSI, ...) and versions (if applicable)
The text was updated successfully, but these errors were encountered: