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

Download oc client matching OKD/OCP version #44

Open
siamaksade opened this issue Oct 29, 2018 · 3 comments
Open

Download oc client matching OKD/OCP version #44

siamaksade opened this issue Oct 29, 2018 · 3 comments

Comments

@siamaksade
Copy link

Instead of the extension downloading the latest OKD release, it should check the OpenShift version and download the respective OKD/OCP version. This is specially important given the OKD/OCP 4 release.

Considering the above, version selection would not be needed for a large marjory of users and therefore should be hidden from the user. For example moved to something like "advanced config" that user can click to expand.

@hferentschik
Copy link
Contributor

On second thought this won't be so easy. To determine the version I need oc itself (unless one can somehow call a REST endpoint).

One could of course download the latest and use it to run oc version to then get the matching oc version. Not sure whether it is worth it. Maybe as additional option on the task ("match oc version").

OCP is yet another beast, since to my knowledge we don't have a publicly accessible URL for downloading OCP binaries. My understanding is that OKD and OCP oc versions are identical in matching versions (at least in terms of functionality).

@siamaksade
Copy link
Author

I believe /version should give you that as oc is also getting the version from the API.

OpenShift Online has also the same ambition to make the OCP clients available publicly, we could possibly take advantage of that? /cc @luciddreamz

@luciddreamz
Copy link

We aren't actually doing any work in that area with OpenShift Online. We're pretty much in the same boat as everyone else with hoping that there is a better way to get those tools at some point :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants