mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 14:37:00 +00:00
Get version from started.json.
This commit is contained in:
parent
072798b253
commit
c99a18e31c
@ -94,6 +94,10 @@ function find_version() {
|
|||||||
source "hack/lib/version.sh"
|
source "hack/lib/version.sh"
|
||||||
kube::version::get_version_vars
|
kube::version::get_version_vars
|
||||||
echo "${KUBE_GIT_VERSION-}"
|
echo "${KUBE_GIT_VERSION-}"
|
||||||
|
else
|
||||||
|
# Last resort from the started.json
|
||||||
|
gsutil cat ${gcs_build_path}/started.json 2>/dev/null |\
|
||||||
|
sed -n 's/ *"version": *"\([^"]*\)",*/\1/p'
|
||||||
fi
|
fi
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user