Description
What would you like to be added?
The podresources API is a node-local API exposed by the kubelet graduating to GA in 1.28.
The project already exports the API definitition proper but not a client package.
Since this is a GA API, we should either provide easy to consume client code, or at least recommend a third party client.
For starters a golang client package is fine, and we should can extend and polish the existing client code.
Why is this needed?
Clients code wanting to consume the code maybe considering to reuse the existing client code, but this is actively discouraged.
One of the reasons seems to be that doing this will also require to import (and possibly vendor) k8s.io/kubernetes
.
The only real option is to copy and paste the related code. For more details, the discussion started in the feature graduation blog post, which have more details and example code (the discussion should however continue here).
[edit] clarified why importing the existing client code is a bad idea, which if nothing else makes this issue more relevant. [/edit]