diff --git a/scripts/setup-cluster.sh b/scripts/setup-cluster.sh index 4bda6dae..f68ab6db 100755 --- a/scripts/setup-cluster.sh +++ b/scripts/setup-cluster.sh @@ -30,6 +30,10 @@ 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" @@ -37,7 +41,3 @@ echo "${CLUSTER_NAME} ready" IMAGE=${REPO}/backup-restore-operator:${TAG} k3d image import ${IMAGE} -c ${CLUSTER_NAME} - -kubectl cluster-info --context k3d-${CLUSTER_NAME} -kubectl config use-context k3d-${CLUSTER_NAME } -kubectl get nodes -o wide \ No newline at end of file