Skip to content

Commit

Permalink
fix bug: can't get the right value of ready
Browse files Browse the repository at this point in the history
  • Loading branch information
backwind1233 authored and rjeberhard committed Oct 24, 2023
1 parent 40057f5 commit 8912651
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ sleep $interval

while [ $waiting_time -lt $max_wait_time ]; do
status=$(${kubernetesCli} get pod/${domainUID}-admin-server -o=jsonpath='{.status.phase}')
ready=$(${kubernetesCli} get pod/${domainUID}-admin-server -o=jsonpath='{.ready.phase}')
ready=$(${kubernetesCli} get pod/${domainUID}-admin-server --no-headers | awk '{print $2}')
if [ "$status" == "Running" ]; then
if [ "$ready" == "1/1" ]; then
echo "${domainUID}-admin-server is running. Exiting..."
Expand Down

0 comments on commit 8912651

Please sign in to comment.