File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ KUBECTL_MIRROR="${KUBECTL_MIRROR:-https://dl.k8s.io}"
2222HELM_MIRROR=" ${HELM_MIRROR:- https:// get.helm.sh} "
2323MINIKUBE_MIRROR=" ${MINIKUBE_MIRROR:- https:// storage.googleapis.com/ minikube} "
2424GITHUB_RELEASE_URL=" ${GITHUB_RELEASE_MIRROR:- https:// github.com} "
25+ KUBECTL_GCS_MIRROR=" ${KUBECTL_GCS_MIRROR:- https:// storage.googleapis.com/ kubernetes-release} "
2526
2627KUBECTL_SHA256=" ${KUBECTL_SHA256:- " automatic" } "
2728HELM_SHA256=" ${HELM_SHA256:- " automatic" } "
@@ -174,7 +175,7 @@ if [ ${KUBECTL_VERSION} != "none" ]; then
174175 KUBECTL_VERSION=" $( curl -fsSL --connect-timeout 10 --max-time 30 " ${KUBECTL_MIRROR} /release/stable.txt" 2> /dev/null | grep -E ' ^v[0-9]+\.[0-9]+\.[0-9]+' || echo " " ) "
175176 if [ -z " ${KUBECTL_VERSION} " ]; then
176177 echo " (!) Failed to fetch kubectl stable version from ${KUBECTL_MIRROR} , trying alternative URL..."
177- 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 " " ) "
178+ KUBECTL_VERSION=" $( curl -fsSL --connect-timeout 10 --max-time 30 " ${KUBECTL_GCS_MIRROR} / release/stable.txt" 2> /dev/null | grep -E ' ^v[0-9]+\.[0-9]+\.[0-9]+' || echo " " ) "
178179 fi
179180 if [ -z " ${KUBECTL_VERSION} " ]; then
180181 echo " (!) Failed to fetch kubectl stable version from both URLs. Using fallback version ${KUBECTL_FALLBACK_VERSION} "
Original file line number Diff line number Diff line change @@ -29,14 +29,15 @@ SENTINEL_SHA256="${SENTINEL_SHA256:-"automatic"}"
2929TFSEC_SHA256=" ${TFSEC_SHA256:- " automatic" } "
3030TERRAFORM_DOCS_SHA256=" ${TERRAFORM_DOCS_SHA256:- " automatic" } "
3131GITHUB_RELEASE_URL=" ${GITHUB_RELEASE_MIRROR:- https:// github.com} "
32+ GITHUB_USERCONTENT_URL=" ${GITHUB_USERCONTENT_MIRROR:- https:// raw.githubusercontent.com} "
3233
3334HASHICORP_RELEASES_URL=" https://releases.hashicorp.com"
3435if [ -n " ${CUSTOM_DOWNLOAD_SERVER} " ]; then
3536 HASHICORP_RELEASES_URL=" ${CUSTOM_DOWNLOAD_SERVER} "
3637fi
3738
3839TERRAFORM_GPG_KEY=" 72D7468F"
39- TFLINT_GPG_KEY_URI=" https://raw.githubusercontent.com /terraform-linters/tflint/v0.46.1/8CE69160EB3F2FE9.key"
40+ TFLINT_GPG_KEY_URI=" ${GITHUB_USERCONTENT_URL} /terraform-linters/tflint/v0.46.1/8CE69160EB3F2FE9.key"
4041HASHICORP_KEY_URL=" ${HASHICORP_GPG_KEY_MIRROR:- https:// keybase.io} /hashicorp/pgp_keys.asc"
4142KEYSERVER_PROXY=" ${HTTPPROXY:- " ${HTTP_PROXY:- " " } " } "
4243
You can’t perform that action at this time.
0 commit comments