mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
kubectl version -c has been deprecated, use --client instead
This commit is contained in:
parent
54f24b02ea
commit
db7c8f633b
@ -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"}
|
# 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
|
# and spits back the GitVersion piece in a way that is somewhat
|
||||||
# resilient to the other fields changing (we hope)
|
# 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\"
|
/g" | egrep "^GitVersion:" | cut -f2 -d: | cut -f2 -d\"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user