From db7c8f633b4d53f356cdca7d257898df581c9aa8 Mon Sep 17 00:00:00 2001 From: Jeff Grafton Date: Tue, 6 Sep 2016 15:46:02 -0700 Subject: [PATCH] kubectl version -c has been deprecated, use --client instead --- build/util.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/util.sh b/build/util.sh index d03048c346a..db9a7040baf 100644 --- a/build/util.sh +++ b/build/util.sh @@ -23,7 +23,7 @@ function kube::release::semantic_version() { # Client Version: version.Info{Major:"1", Minor:"1+", GitVersion:"v1.1.0-alpha.0.2328+3c0a05de4a38e3", GitCommit:"3c0a05de4a38e355d147dbfb4d85bad6d2d73bb9", GitTreeState:"clean"} # and spits back the GitVersion piece in a way that is somewhat # resilient to the other fields changing (we hope) - ${KUBE_ROOT}/cluster/kubectl.sh version -c | sed "s/, */\\ + ${KUBE_ROOT}/cluster/kubectl.sh version --client | sed "s/, */\\ /g" | egrep "^GitVersion:" | cut -f2 -d: | cut -f2 -d\" }