Skip to content

Commit

Permalink
Merge pull request rook#13293 from rkachach/fix_issue_dashboard_ipaddr
Browse files Browse the repository at this point in the history
test: fix how we obtain the dashboard endpoint
  • Loading branch information
BlaineEXE authored Nov 30, 2023
2 parents ee14ecb + b739f29 commit d7b06ba
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/scripts/create-dev-cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,8 @@ get_minikube_driver() {
show_info() {
local monitoring_enabled=$1
DASHBOARD_PASSWORD=$($KUBECTL -n "$ROOK_CLUSTER_NS" get secret rook-ceph-dashboard-password -o jsonpath="{['data']['password']}" | base64 --decode && echo)
IP_ADDR=$($KUBECTL get po --selector="app=rook-ceph-mgr" -n "$ROOK_CLUSTER_NS" --output jsonpath='{.items[*].status.hostIP}')
PORT="$($KUBECTL -n "$ROOK_CLUSTER_NS" -o=jsonpath='{.spec.ports[?(@.name == "dashboard")].nodePort}' get services rook-ceph-mgr-dashboard-external-http)"
BASE_URL="http://$IP_ADDR:$PORT"
DASHBOARD_END_POINT=$($MINIKUBE service rook-ceph-mgr-dashboard-external-http -n rook-ceph --url)
BASE_URL="$DASHBOARD_END_POINT"
echo "==========================="
echo "Ceph Dashboard:"
echo " IP_ADDR : $BASE_URL"
Expand Down

0 comments on commit d7b06ba

Please sign in to comment.