Skip to content

Access sub-resources #416

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
cben opened this issue Jul 9, 2019 · 2 comments
Open

Access sub-resources #416

cben opened this issue Jul 9, 2019 · 2 comments

Comments

@cben
Copy link
Collaborator

cben commented Jul 9, 2019

Kubernetes APIs include many sub-resources.
Currently Kubeclient ignores all of those in discovery and surprisingly we haven't seen much complaints.

This is a pre-emptive issue to collect whether there are any use cases for generic discovery support?

The actual API of sub-resources varies widely, and you can't know this from the discovery info 🎁

Conclusion?

So far, it sounds like generic discovery is pretty pointless, as one needs special-purpose code for each use case anyway?
If anyone has counter-examples, please post here! That's my goal in opening this issue!

P.S. Method naming problem

One of the reason Kubeclient ignores sub-resource is it translates resources like pods to method names like get_pods, delete_pod etc. If we stop ignoring them, it's not obvious how to name methods.

@cben
Copy link
Collaborator Author

cben commented Jul 9, 2019

cc @shiramax. I believe your kubevirt VNC use case won't be helped by any generic sub-resource functionality, which this issue is about; but #417 (params to do your own connection) is more relevant for you.

@cben
Copy link
Collaborator Author

cben commented Dec 16, 2019

#422 wants to patch foo/status, and I think we should instead allow all verbs on foo/status.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant