Skip to content

Commit

Permalink
Update compile
Browse files Browse the repository at this point in the history
Fix kubectl download: kubernetes/k8s.io#1571
  • Loading branch information
shem8 authored Dec 1, 2024
1 parent 976736b commit 55e2c98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 55e2c98

Please sign in to comment.