mirror of https://github.com/k3s-io/k3s
![]() Automatic merge from submit-queue (batch tested with PRs 38720, 38533) Priority REST Mapper: Actually honor user choice ```release-note Fixes bug in resolving client-requested API versions ``` RESTMapping takes a desired GroupKind, and a set of versions, and returns a rest mapper for the first matching version. It also has a list of built-in discovered prioritized versions, to which it appends the user versions. However, when it goes to parse the versions, it parses them as GroupVersions. Since only a version was passed, the group will be the empty group (""), which will only match rest mappings for the empty group, ergo, none of the user's versions will match if they are attempting a match for a non-emtpy-group GroupKind. This fixes that by taking the parsed GroupVersion, and overriding the Group with the Group from the passed-in GroupKind. |
||
---|---|---|
.. | ||
metatypes | ||
BUILD | ||
OWNERS | ||
doc.go | ||
errors.go | ||
firsthit_restmapper.go | ||
help.go | ||
help_test.go | ||
interfaces.go | ||
meta.go | ||
meta_test.go | ||
multirestmapper.go | ||
multirestmapper_test.go | ||
priority.go | ||
priority_test.go | ||
restmapper.go | ||
restmapper_test.go | ||
scheme_test.go | ||
unstructured.go |