File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 1- #! /bin/bash
1+ #! /usr/ bin/env bash
22set -v
33
44# Install kubectl
@@ -11,9 +11,12 @@ curl -Lo ./kind https://github.com/kubernetes-sigs/kind/releases/download/${KIND
1111kind create cluster --image kindest/node:${K8S_VERSION}
1212
1313# 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;
14+ JSONPATH=' {range .items[*]}{@.metadata.name}:{range @.status.conditions[*]}{@.type}={@.status};{end}{end}'
15+ out=' '
16+ until [[ " ${out} " =~ ' Ready=True' ]]; do
17+ sleep 1
18+ out=$( kubectl get nodes -o jsonpath=" $JSONPATH " )
19+ echo " ${out} "
1720done
1821
1922# Scale the CoreDNS replicas to simplify testing
You can’t perform that action at this time.
0 commit comments