File tree Expand file tree Collapse file tree
src/kubectl-helm-minikube Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -159,7 +159,11 @@ if [ ${KUBECTL_VERSION} != "none" ]; then
159159 if [ " ${KUBECTL_VERSION} " = " latest" ] || [ " ${KUBECTL_VERSION} " = " lts" ] || [ " ${KUBECTL_VERSION} " = " current" ] || [ " ${KUBECTL_VERSION} " = " stable" ]; then
160160 KUBECTL_VERSION=" $( curl -fsSL --connect-timeout 10 --max-time 30 https://dl.k8s.io/release/stable.txt 2> /dev/null | grep -E ' ^v[0-9]+\.[0-9]+\.[0-9]+' || echo " " ) "
161161 if [ -z " ${KUBECTL_VERSION} " ]; then
162- echo " (!) Failed to fetch kubectl stable version. Using fallback version ${KUBECTL_FALLBACK_VERSION} "
162+ echo " (!) Failed to fetch kubectl stable version from dl.k8s.io, trying alternative URL..."
163+ KUBECTL_VERSION=" $( curl -fsSL --connect-timeout 10 --max-time 30 https://storage.googleapis.com/kubernetes-release/release/stable.txt 2> /dev/null | grep -E ' ^v[0-9]+\.[0-9]+\.[0-9]+' || echo " " ) "
164+ fi
165+ if [ -z " ${KUBECTL_VERSION} " ]; then
166+ echo " (!) Failed to fetch kubectl stable version from both URLs. Using fallback version ${KUBECTL_FALLBACK_VERSION} "
163167 KUBECTL_VERSION=" ${KUBECTL_FALLBACK_VERSION} "
164168 fi
165169 else
You can’t perform that action at this time.
0 commit comments