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

Provide a way to figure out the OpenShift server version, whether 3.x or 4.x #1979

Closed
mohitsuman opened this issue Aug 5, 2019 · 1 comment

Comments

@mohitsuman
Copy link

[kind/Feature]

Which functionality do you think we should add?

I am finding it tricky to figure out the OpenShift server version whether it is 3.x or 4.x.

Right now the only thing we get is the server url from odo version/ oc version.

Why is this needed?

This will help for adapters to understand the server version and based on that decide the OpenShift web console URL.

For 3.x server, the web console URL does not use route and can be figured out using:
{server_Url}/console.
But for 4.x server, the web console URL goes through routes using operators and can be determined using the following:
oc get routes -n openshift-console -ojson | jq '.items[0].spec.host'

@girishramnani
Copy link
Contributor

If I remember correctly this was resolved on vs code plugin side already? @mohitsuman .
Closing for now, please re-open this issue if it's not yet resolved 🙂

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

2 participants