File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -173,12 +173,13 @@ function verify_kube_dashboard {
173173 fi
174174
175175 # If the dashboard is running correctly then it will report back the pods list
176- dashboard_state=$( kubectl get pods -n ${NAMESPACE} -o json 2> /dev/null | jq -r ' .items[] | select(.metadata.name | match("kubernetes-dashboard-[0-9a-f ]{10}-[0-9a-f] ")) | .status.phase' )
176+ dashboard_state=$( kubectl get pods -n ${NAMESPACE} -o json 2> /dev/null | jq -r ' .items[] | select(.metadata.name | match("kubernetes-dashboard-[0-9a-z ]{10}-[0-9a-z]{5} ")) | .status.phase' )
177177
178178 elapsed=$(( elapsed + interval))
179179 if [ " ${dashboard_state} " == " Running" ]; then
180180 break
181181 elif [ ${elapsed} -lt ${timeout} ]; then
182+ echo " ⏳ Current State: '${dashboard_state} ', sleep and retry"
182183 sleep ${interval}
183184 fi
184185 done
You can’t perform that action at this time.
0 commit comments