Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Temporary fix for client-go "shorthand" api #4

Open
aminick opened this issue Oct 7, 2020 · 0 comments
Open

Temporary fix for client-go "shorthand" api #4

aminick opened this issue Oct 7, 2020 · 0 comments

Comments

@aminick
Copy link

aminick commented Oct 7, 2020

Client-go is suppose to support a short hand way to to make requests to the cluster based on the current client configuration, for example, if a client config is set with a Bearer Token under some tenant, It's should be possible to make requests like this:

client.CoreV1().Pods("default").List(options)

This should response with pods information for this specific tenant.
However, due to an error identified here, this short hand api is not currently supported.
Thus, a temporary fix is provided through out the code base:

client.CoreV1().PodsWithMultiTenancy("default", "").List(options)

This works exactly the same but it's more wordy. When that issue is resolved, they should be all changed back to the short hand version.

@aminick aminick changed the title Temporary fix for client-go "short hand" api Temporary fix for client-go "shorthand" api Oct 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant