diff --git a/scripts/setup-cluster.sh b/scripts/setup-cluster.sh index f68ab6db..e0c08472 100755 --- a/scripts/setup-cluster.sh +++ b/scripts/setup-cluster.sh @@ -30,14 +30,16 @@ wait_for_nodes(){ } k3d cluster create ${CLUSTER_NAME} -kubectl cluster-info --context k3d-${CLUSTER_NAME} -kubectl config use-context k3d-${CLUSTER_NAME} -kubectl get nodes -o wide + wait_for_nodes echo "${CLUSTER_NAME} ready" +kubectl cluster-info --context k3d-${CLUSTER_NAME} +kubectl config use-context k3d-${CLUSTER_NAME} +kubectl get nodes -o wide + IMAGE=${REPO}/backup-restore-operator:${TAG} k3d image import ${IMAGE} -c ${CLUSTER_NAME}