Skip to content

Commit

Permalink
Fix fetching of Dashboard URL (red-hat-data-services#1642)
Browse files Browse the repository at this point in the history
* filter dashboard url fetch

* fix formatting

* fix ruff alerts

* fix odh ns
  • Loading branch information
bdattoma committed Jul 16, 2024
1 parent 6271666 commit 84be096
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ods_ci/utils/scripts/testconfig/generateTestConfigFile.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,10 @@ def get_dashboard_url():
"""
Get dashboard url for the open data science.
"""
cmd = "oc get route -A -o json | jq '.items[].spec.host' | grep 'dashboard'"

cmd = (
"(oc get route -n opendatahub -o json | jq '.items[].spec.host' | grep odh-dashboard) || "
"(oc get route -n redhat-ods-applications -o json | jq '.items[].spec.host' | grep rhods-dashboard)"
)
dashboard_url = execute_command(cmd)
return "https://" + dashboard_url.strip('"').strip("\n")

Expand Down

0 comments on commit 84be096

Please sign in to comment.