From 902a04d637de2295d484d23916c3c6308c8f6d2b Mon Sep 17 00:00:00 2001 From: Rodrigo Campos Date: Thu, 17 Mar 2016 12:47:19 -0300 Subject: [PATCH] validate-cluster.sh: Don't use ignored and deprecated option '--api-version' When using this flag, this error is shown: Flag --api-version has been deprecated, flag is no longer respected and will be deleted in the next release Stop using the flag in the validate-cluster.sh script and avoid the warning. --- 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 812799968bc..486f8cd0648 100755 --- a/cluster/validate-cluster.sh +++ b/cluster/validate-cluster.sh @@ -89,7 +89,7 @@ while true; do # Echo the output and gather 2 counts: # - Total number of componentstatuses. # - Number of "healthy" components. - cs_status=$("${KUBE_ROOT}/cluster/kubectl.sh" get componentstatuses -o template --template='{{range .items}}{{with index .conditions 0}}{{.type}}:{{.status}},{{end}}{{end}}' --api-version=v1) || true + cs_status=$("${KUBE_ROOT}/cluster/kubectl.sh" get componentstatuses -o template --template='{{range .items}}{{with index .conditions 0}}{{.type}}:{{.status}},{{end}}{{end}}') || true componentstatuses=$(echo "${cs_status}" | tr "," "\n" | grep -c 'Healthy:') || true healthy=$(echo "${cs_status}" | tr "," "\n" | grep -c 'Healthy:True') || true