mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 07:47:56 +00:00
Merge pull request #9595 from mikedanese/gce-upgrade-bug
fix unbound variable bug in cluster/common.sh
This commit is contained in:
commit
8b235210c6
8
cluster/common.sh
Normal file → Executable file
8
cluster/common.sh
Normal file → Executable file
@ -169,7 +169,7 @@ function get-kubeconfig-bearertoken() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Sets binary_version variable to the version passed in as an argument, or if argument is
|
# Sets KUBE_VERSION variable to the version passed in as an argument, or if argument is
|
||||||
# latest_stable, latest_release, or latest_ci fetches and sets the correponding version number
|
# latest_stable, latest_release, or latest_ci fetches and sets the correponding version number
|
||||||
#
|
#
|
||||||
# Args:
|
# Args:
|
||||||
@ -179,13 +179,13 @@ function get-kubeconfig-bearertoken() {
|
|||||||
function set_binary_version() {
|
function set_binary_version() {
|
||||||
if [[ "${1}" == "latest_stable" ]]; then
|
if [[ "${1}" == "latest_stable" ]]; then
|
||||||
KUBE_VERSION=$(gsutil cat gs://kubernetes-release/release/stable.txt)
|
KUBE_VERSION=$(gsutil cat gs://kubernetes-release/release/stable.txt)
|
||||||
echo "Using latest stable version: ${binary_version}"
|
echo "Using latest stable version: ${KUBE_VERSION}"
|
||||||
elif [[ "${1}" == "latest_release" ]]; then
|
elif [[ "${1}" == "latest_release" ]]; then
|
||||||
KUBE_VERSION=$(gsutil cat gs://kubernetes-release/release/latest.txt)
|
KUBE_VERSION=$(gsutil cat gs://kubernetes-release/release/latest.txt)
|
||||||
echo "Using latest release version: ${binary_version}"
|
echo "Using latest release version: ${KUBE_VERSION}"
|
||||||
elif [[ "${1}" == "latest_ci" ]]; then
|
elif [[ "${1}" == "latest_ci" ]]; then
|
||||||
KUBE_VERSION=$(gsutil cat gs://kubernetes-release/ci/latest.txt)
|
KUBE_VERSION=$(gsutil cat gs://kubernetes-release/ci/latest.txt)
|
||||||
echo "Using latest ci version: ${binary_version}"
|
echo "Using latest ci version: ${KUBE_VERSION}"
|
||||||
else
|
else
|
||||||
KUBE_VERSION=${1}
|
KUBE_VERSION=${1}
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user