From dc9d8bb9e964235ff8c4ab0d55a6209c0a07e411 Mon Sep 17 00:00:00 2001 From: Andrei Kvapil Date: Wed, 9 Oct 2024 23:50:02 +0200 Subject: [PATCH] e2e: wait for cluster api providers (#417) Signed-off-by: Andrei Kvapil ## Summary by CodeRabbit - **New Features** - Enhanced orchestration of the Kubernetes environment with added wait commands for critical controllers and nodes. - Created and configured two new storage classes (`local` and `replicated`) for improved storage management. - Introduced MetalLB resources for effective load balancing within the cluster. - **Improvements** - Implemented checks to ensure all necessary components are online before proceeding with configurations. Signed-off-by: Andrei Kvapil --- hack/e2e.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hack/e2e.sh b/hack/e2e.sh index 7f81f041..0237997c 100755 --- a/hack/e2e.sh +++ b/hack/e2e.sh @@ -217,6 +217,10 @@ timeout 60 sh -c 'until kubectl get hr -A | grep cozy; do sleep 1; done' sleep 5 kubectl get hr -A | awk 'NR>1 {print "kubectl wait --timeout=15m --for=condition=ready -n " $1 " hr/" $2 " &"} END{print "wait"}' | sh -x + +# Wait for Cluster-API providers +kubectl wait deploy --timeout=30s --for=condition=available -n cozy-cluster-api capi-controller-manager capi-kamaji-controller-manager capi-kubeadm-bootstrap-controller-manager capi-operator-cluster-api-operator capk-controller-manager + # Wait for linstor controller kubectl wait deploy --timeout=5m --for=condition=available -n cozy-linstor linstor-controller