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

Incorrect Kubernetes Cluster URL in Navigation bar #215

Open
shreyabiradar07 opened this issue Nov 12, 2024 · 6 comments
Open

Incorrect Kubernetes Cluster URL in Navigation bar #215

shreyabiradar07 opened this issue Nov 12, 2024 · 6 comments

Comments

@shreyabiradar07
Copy link
Contributor

Problem Faced:
In the horizontal Navbar on clicking the Kubernetes logo to get cluster information there are two URLs displayed

  1. Kubernetes URL
  2. Kruize URL

In OpenShift, for Kubernetes URL currenttly Kruize-UI route URL is displayed instead of the OpenShift cluster URL

Screenshot From 2024-11-11 18-26-58

Expectations / Delivery Requirements:
Fix the Kubernetes URL being displayed, replacing with OpenShift URL

Where to Start?

@athiruma
Copy link
Contributor

AFAIK the cluster URL would look like this: <route_name>.apps.uihackathon.lab.psi.pnq2.redhat.com
Which route URL do you want to display here?
@bhanvimenghani

@bhanvimenghani
Copy link
Contributor

For the kubernetes url we want it to be just the oc login https://api.uihackathon.lab.psi.pnq2.redhat.com:6443 api url, just so that the user knows which oc machine the ui is running on. and for the kruize url part we can keep it as it is for now.

@athiruma
Copy link
Contributor

Any API that exposes the cluster url?

@bhanvimenghani
Copy link
Contributor

Currently we dont have a backend api which provides this cluster url, afaik.
@shreyabiradar07 maybe can help here.

@shreyabiradar07
Copy link
Contributor Author

@athiruma We want to display OpenShift Cluster URL, for example in minikube(screenshot attached) UI displays minikube IP for Kubernetes URL and similarly we want either the Openshift Console route URL or api-server URL to be displayed which can be fetched by running below command

Expected output-
Kubernetes URL: http://console-openshift-console.apps.uihackathon.lab.psi.pnq2.redhat.com

oc get routes -n openshift-console
NAME        HOST/PORT                                                              PATH   SERVICES    PORT    TERMINATION          WILDCARD
console     console-openshift-console.apps.uihackathon.lab.psi.pnq2.redhat.com            console     https   reencrypt/Redirect   None

Minikube example:

Screenshot From 2024-11-12 18-56-35

@athiruma
Copy link
Contributor

@shreyabiradar07, you are right. For this, we need the API in the backend to expose these url's. From the front end, we can't exec/ run commands on the cluster.
It would be great to have these two API's.
/api/cluster_url expose the cluster URL
/api/cluster_url/console exposes the console route.

WDYT?

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

3 participants