From 55e2c98db3a5e0477c3fd214c4f24fc96d0c5cbf Mon Sep 17 00:00:00 2001 From: Shem Date: Sun, 1 Dec 2024 17:14:02 +0200 Subject: [PATCH] Update compile Fix kubectl download: https://github.com/kubernetes/k8s.io/issues/1571 --- bin/compile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/compile b/bin/compile index e6f1089..8a1334a 100644 --- a/bin/compile +++ b/bin/compile @@ -4,11 +4,12 @@ BUILD_DIR=$1 CACHE_DIR=$2 ENV_DIR=$3 -KUBECTL_VERSION=$(curl -L -s https://dl.k8s.io/release/stable.txt) +KUBECTL_VERSION=$(curl -L -s https://storage.googleapis.com/kubernetes-release/release/stable.txt) # Download and install kubectl echo "Installing kubectl version $KUBECTL_VERSION" DOWNLOAD_URL="https://storage.googleapis.com/kubernetes-release/release/$KUBECTL_VERSION/bin/linux/amd64/kubectl" + mkdir -p "$CACHE_DIR/kubectl/$KUBECTL_VERSION" KUBECTL_CACHE_FILE="$CACHE_DIR/kubectl/$KUBECTL_VERSION/kubectl"