Skip to content

print correct dashboard link #28

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

Merged
merged 1 commit into from
Nov 3, 2022
Merged

print correct dashboard link #28

merged 1 commit into from
Nov 3, 2022

Conversation

MichaelClifford
Copy link
Collaborator

No description provided.

Copy link
Collaborator

@atinsood atinsood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor change requested

@@ -175,6 +175,10 @@ def _get_app_wrappers(filter:List[AppWrapperStatus], namespace='default') -> Lis

def _map_to_ray_cluster(cluster) -> RayCluster:
cluster_model = cluster.model

with oc.project(cluster.namespace()), oc.timeout(10*60):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MichaelClifford can we just call the cluster.dashboard_uri() method here rather than trying to get the route again. I think we are already doing the same logic in both teh places.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@atinsood My original goal was to use the cluster.dashboard_uri() here. But the "cluster" object that gets passed to _map_to_ray_cluster is the raycluster API object from openshift not the Cluster class we've defined in our SDK. So, right now we can't reuse that method here, unfortunately.

@atinsood atinsood merged commit 93929d2 into main Nov 3, 2022
@atinsood atinsood deleted the printCorrectDashboard branch November 3, 2022 20:51
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

Successfully merging this pull request may close these issues.

2 participants