Closed tenstad closed 1 year ago
The two prioritized elements in NewDiscoveryRESTMapper have Group "" rather than meta.AnyGroup ("*"), making them not match any nonempty groups in resourceMatches.
Group
""
meta.AnyGroup
"*"
// /v1 is special. It should always come first resourcePriority := []schema.GroupVersionResource{{Group: "", Version: "v1", Resource: meta.AnyResource}} kindPriority := []schema.GroupVersionKind{{Group: "", Version: "v1", Kind: meta.AnyKind}}
The core kube API, empty group, version==v1 should always be the most preferred group https://github.com/kubernetes/kubernetes/pull/42275
Seems to be intended
The two prioritized elements in NewDiscoveryRESTMapper have
Group
""
rather thanmeta.AnyGroup
("*"
), making them not match any nonempty groups in resourceMatches.