Skip to content

Commit

Permalink
Merge pull request #89 from MikeSpreitzer/wait-in-setup
Browse files Browse the repository at this point in the history
✨  Extend setup script with wait for agent
  • Loading branch information
MikeSpreitzer authored Nov 25, 2024
2 parents 091d5bb + 2770b66 commit a99a79e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/e2e/setup-ocm-and-addon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,10 @@ make ko-local-build
make kind-load-image CLUSTERS="hub cluster1"
make deploy DEFAULT_IMBS_CONTEXT=kind-hub CHART_INSTALL_EXTRA_ARGS="--set agent.v=5 --set agent.hub_burst=7"
git restore config/manager/kustomization.yaml # restore newTag
:
: -------------------------------------------------------------------------
: Wait for the agent to appear and come up
:
wait-for-cmd 'kubectl --context kind-cluster1 get deploy -n open-cluster-management-agent-addon status-agent'
kubectl --context kind-cluster1 wait deploy -n open-cluster-management-agent-addon status-agent --for condition=Available --timeout 180s

0 comments on commit a99a79e

Please sign in to comment.