Skip to content

Commit

Permalink
Test scripts wait for agent readiness
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario Manno committed Oct 31, 2023
1 parent a17fc99 commit b49809c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/scripts/setup-latest-rancher.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@ kubectl -n cattle-system rollout status deploy/rancher
# wait for rancher to create fleet namespace, deployment and controller
{ grep -q -m 1 "fleet"; kill $!; } < <(kubectl get deployments -n cattle-fleet-system -w)
kubectl -n cattle-fleet-system rollout status deploy/fleet-controller
{ grep -E -q -m 1 "fleet-agent-local.*1/1"; kill $!; } < <(kubectl get bundles -n fleet-local -w)

helm list -A
1 change: 1 addition & 0 deletions .github/scripts/setup-rancher.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@ kubectl -n cattle-system rollout status deploy/rancher
# wait for rancher to create fleet namespace, deployment and controller
{ grep -q -m 1 "fleet"; kill $!; } < <(kubectl get deployments -n "$fleetns" -w)
kubectl -n "$fleetns" rollout status deploy/fleet-controller
{ grep -E -q -m 1 "fleet-agent-local.*1/1"; kill $!; } < <(kubectl get bundles -n fleet-local -w)
1 change: 1 addition & 0 deletions dev/setup-rancher-clusters
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ kubectl -n cattle-system rollout status deploy/rancher
# wait for rancher to create fleet namespace, deployment and controller
{ grep -q -m 1 "fleet"; kill $!; } < <(kubectl get deployments -n cattle-fleet-system -w)
kubectl -n cattle-fleet-system rollout status deploy/fleet-controller
{ grep -E -q -m 1 "fleet-agent-local.*1/1"; kill $!; } < <(kubectl get bundles -n fleet-local -w)

./.github/scripts/wait-for-loadbalancer.sh

Expand Down

0 comments on commit b49809c

Please sign in to comment.