Fix KUBE_TAR_URL issue and fix root cause; fixes #15738

This commit is contained in:
Isaac Hollander McCreery
2015-10-16 12:34:18 -07:00
parent a379e52c57
commit ef3d56433b
2 changed files with 16 additions and 19 deletions

View File

@@ -71,6 +71,12 @@ if [[ "${print_version}" == "true" ]]; then
echo "${KUBE_VERSION}"
else
echo "Using version at ${1}: ${KUBE_VERSION}" >&2
tars_from_version
curl --fail -o kubernetes-${KUBE_VERSION}.tar.gz "${KUBE_TAR_URL}"
if [[ ${KUBE_VERSION} =~ ${KUBE_VERSION_REGEX} ]]; then
curl --fail -o kubernetes-${KUBE_VERSION}.tar.gz "https://storage.googleapis.com/kubernetes-release/release/${KUBE_VERSION}/kubernetes.tar.gz"
elif [[ ${KUBE_VERSION} =~ ${KUBE_CI_VERSION_REGEX} ]]; then
curl --fail -o kubernetes-${KUBE_VERSION}.tar.gz "https://storage.googleapis.com/kubernetes-release/ci/${KUBE_VERSION}/kubernetes.tar.gz"
else
echo "Version doesn't match regexp" >&2
exit 1
fi
fi