From b2abfee38bf8fffbd900fe42f2698ac7ebb9a20f Mon Sep 17 00:00:00 2001 From: Sebastiaan van Steenis Date: Tue, 2 Jan 2024 20:11:55 +0100 Subject: [PATCH] Use dl.k8s.io for getting kubectl (#4952) --- Dockerfile | 4 ++-- Dockerfile.windows | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 893bc811b9..f99ea6ce30 100644 --- a/Dockerfile +++ b/Dockerfile @@ -42,8 +42,8 @@ RUN if [ "${ARCH}" = "amd64" ] || [ "${ARCH}" = "arm64" ]; then \ curl -sL "https://github.com/vmware-tanzu/sonobuoy/releases/download/v${VERSION}/sonobuoy_${VERSION}_${OS}_${ARCH}.tar.gz" | \ tar -xzf - -C /usr/local/bin; \ fi -RUN curl -sL https://storage.googleapis.com/kubernetes-release/release/$( \ - curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt \ +RUN curl -sL https://dl.k8s.io/release/$( \ + curl -sL https://dl.k8s.io/release/stable.txt \ )/bin/linux/${ARCH}/kubectl -o /usr/local/bin/kubectl && \ chmod a+x /usr/local/bin/kubectl; \ pip install codespell diff --git a/Dockerfile.windows b/Dockerfile.windows index 1e4fa8f19a..ff32ed8832 100644 --- a/Dockerfile.windows +++ b/Dockerfile.windows @@ -29,8 +29,8 @@ RUN set -x && \ file \ bash \ py-pip -RUN curl -sL https://storage.googleapis.com/kubernetes-release/release/$( \ - curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt \ +RUN curl -sL https://dl.k8s.io/release/$( \ + curl -sL https://dl.k8s.io/release/stable.txt \ )/bin/linux/${ARCH}/kubectl -o /usr/local/bin/kubectl && \ chmod a+x /usr/local/bin/kubectl; \ pip install codespell