From b1c418ea20a1ea7384547941fe695f06ac33cd53 Mon Sep 17 00:00:00 2001 From: Brian Rosner Date: Mon, 17 Aug 2015 17:45:32 -0600 Subject: [PATCH] When calling kubectl.sh, allow error due to API server bouncing --- cluster/validate-cluster.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cluster/validate-cluster.sh b/cluster/validate-cluster.sh index 1aa1407cd5d..7b262955f6a 100755 --- a/cluster/validate-cluster.sh +++ b/cluster/validate-cluster.sh @@ -40,7 +40,7 @@ while true; do # Suppress errors from kubectl output because during cluster bootstrapping # for clusters where the master node is registered, the apiserver will become # available and then get restarted as the kubelet configures the docker bridge. - nodes_status=$("${KUBE_ROOT}/cluster/kubectl.sh" get nodes -o template --template='{{range .items}}{{with index .status.conditions 0}}{{.type}}:{{.status}},{{end}}{{end}}' --api-version=v1) + nodes_status=$("${KUBE_ROOT}/cluster/kubectl.sh" get nodes -o template --template='{{range .items}}{{with index .status.conditions 0}}{{.type}}:{{.status}},{{end}}{{end}}' --api-version=v1) || true found=$(echo "${nodes_status}" | tr "," "\n" | grep -c 'Ready:') || true ready=$(echo "${nodes_status}" | tr "," "\n" | grep -c 'Ready:True') || true