read
returns wrong struct for custom k8s objects, if name matches core API object
#1747
Labels
lifecycle/rotten
Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Describe the bug
When
read()
ing a custom k8s object, whosekind
matches one of the core API object kinds, it constructs an object matching the core v1 type.Example:
monitoring.coreos.com/v1:Probe
matchescore/v1:Probe
Client Version
0.21.0
Server Version
v1.28.4
To Reproduce
Steps to reproduce the behavior:
monitoring.coreos.com/v1
, and kindProbe
, metadata.name="foo".Expected behavior
The correct, entire monitoring../v1:Probe object is returned.
Example Code
Environment (please complete the following information):
Additional context
list()
correctly returns the object as-is for custom object types. I suppose it matches the full version string, instead of just thev1
part.The text was updated successfully, but these errors were encountered: