We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents efbef7b + ef2b986 commit baaf458Copy full SHA for baaf458
build/kubernetes/k8s_setup.sh
@@ -11,10 +11,7 @@ curl -Lo ./kind "https://github.com/kubernetes-sigs/kind/releases/download/${KIN
11
kind create cluster --image "kindest/node:${K8S_VERSION}"
12
13
# Wait for cluster to be ready
14
-JSONPATH='{range .items[*]}{@.metadata.name}:{range @.status.conditions[*]}{@.type}={@.status};{end}{end}';
15
-until kubectl get nodes -o jsonpath="$JSONPATH" 2>&1 | grep -q "Ready=True"; do
16
- sleep 1;
17
-done
+kubectl wait --for=condition=Ready nodes --all --timeout=60s >/dev/null 2>&1
18
19
# Scale the CoreDNS replicas to simplify testing
20
kubectl scale -n kube-system deployment/coredns --replicas=1
0 commit comments