File tree 1 file changed +4
-2
lines changed
src/codeflare_sdk/cluster
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -310,7 +310,8 @@ def cluster_dashboard_uri(self) -> str:
310
310
311
311
for route in routes ["items" ]:
312
312
if route ["metadata" ]["name" ] == f"ray-dashboard-{ self .config .name } " :
313
- return f"http://{ route ['spec' ]['host' ]} "
313
+ protocol = "https" if route ["spec" ].get ("tls" ) else "http"
314
+ return f"{ protocol } ://{ route ['spec' ]['host' ]} "
314
315
return "Dashboard route not available yet, have you run cluster.up()?"
315
316
316
317
def list_jobs (self ) -> List :
@@ -585,7 +586,8 @@ def _map_to_ray_cluster(rc) -> Optional[RayCluster]:
585
586
ray_route = None
586
587
for route in routes ["items" ]:
587
588
if route ["metadata" ]["name" ] == f"ray-dashboard-{ rc ['metadata' ]['name' ]} " :
588
- ray_route = route ["spec" ]["host" ]
589
+ protocol = "https" if route ["spec" ].get ("tls" ) else "http"
590
+ ray_route = f"{ protocol } ://{ route ['spec' ]['host' ]} "
589
591
590
592
return RayCluster (
591
593
name = rc ["metadata" ]["name" ],
You can’t perform that action at this time.
0 commit comments