node: provide or recommend a podresources API client #119817
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
sig/node
Categorizes an issue or PR as relevant to SIG Node.
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
shouldcan 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]
The text was updated successfully, but these errors were encountered: