mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 22:46:12 +00:00
Merge pull request #44689 from rmmh/avoid-get-kube-dl-flake
Automatic merge from submit-queue (batch tested with PRs 44687, 44689, 44661) Retry in get-kube.sh to avoid download flakes. GCS has up to 2% 5xx rates, so retrying is critical. This is currently failing about 8 times per day [according to the dashboard](https://storage.googleapis.com/k8s-gubernator/triage/index.html?test=Extract#be2f33fb1e6dd2389d12). It could be backported to reduce the flake rate. Relase note: ```release-note NONE ```
This commit is contained in:
commit
6d67cdd4d9
@ -81,7 +81,7 @@ KUBE_CI_VERSION_REGEX="^v(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)-(be
|
||||
# KUBE_VERSION
|
||||
function set_binary_version() {
|
||||
if [[ "${1}" =~ "/" ]]; then
|
||||
export KUBE_VERSION=$(curl -fsSL "https://dl.k8s.io/${1}.txt")
|
||||
export KUBE_VERSION=$(curl -fsSL --retry 5 "https://dl.k8s.io/${1}.txt")
|
||||
else
|
||||
export KUBE_VERSION=${1}
|
||||
fi
|
||||
@ -227,7 +227,7 @@ fi
|
||||
|
||||
if "${need_download}"; then
|
||||
if [[ $(which curl) ]]; then
|
||||
curl -fL --retry 3 --keepalive-time 2 "${kubernetes_tar_url}" -o "${file}"
|
||||
curl -fL --retry 5 --keepalive-time 2 "${kubernetes_tar_url}" -o "${file}"
|
||||
elif [[ $(which wget) ]]; then
|
||||
wget "${kubernetes_tar_url}"
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user