Skip to content

Commit

Permalink
🐛 fix deploying ocm error in e2e
Browse files Browse the repository at this point in the history
Signed-off-by: zhujian <[email protected]>
  • Loading branch information
zhujian7 committed Mar 7, 2024
1 parent 85d5e94 commit b81f0df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/deploy/ocm/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ for i in {1..7}; do
done

for i in {1..7}; do
echo "############$i Checking klusterlet-registration-agent"
RUNNING_POD=$($KUBECTL -n open-cluster-management-agent get pods | grep klusterlet-registration-agent | grep -c "Running")
echo "############$i Checking klusterlet-agent"
RUNNING_POD=$($KUBECTL -n open-cluster-management-agent get pods | grep klusterlet-agent | grep -c "Running")
if [ ${RUNNING_POD} -ge 1 ]; then
break
fi

if [ $i -eq 7 ]; then
echo "!!!!!!!!!! the klusterlet-registration-agent is not ready within 3 minutes"
echo "!!!!!!!!!! the klusterlet-agent is not ready within 3 minutes"
$KUBECTL -n open-cluster-management-agent get pods
exit 1
fi
Expand Down

0 comments on commit b81f0df

Please sign in to comment.