From f508fb28bfd21b1ef01fb071bb935372f2f0a120 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 a0854b04e6..7877ada366 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 d353179455..9848d120ae 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