From 2770b669725ba03e4b70e5efc8250bf7303dcdc7 Mon Sep 17 00:00:00 2001 From: Mike Spreitzer Date: Wed, 20 Nov 2024 14:26:41 -0500 Subject: [PATCH] Extend setup script with wait for agent This would expose the problem in PR 87 earlier. Signed-off-by: Mike Spreitzer --- test/e2e/setup-ocm-and-addon.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/e2e/setup-ocm-and-addon.sh b/test/e2e/setup-ocm-and-addon.sh index b2a2593..e2b72b6 100755 --- a/test/e2e/setup-ocm-and-addon.sh +++ b/test/e2e/setup-ocm-and-addon.sh @@ -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=2 --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 +