From ef3f26b11996ae085b2a1ce4c6ea2e27cc99c2b8 Mon Sep 17 00:00:00 2001 From: Winston Ametsitsi Date: Mon, 25 Nov 2024 15:53:13 -0800 Subject: [PATCH] fix kubectl url and fail build on download errors --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 0b3150ea39..e16a1d38e2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,7 +20,7 @@ COPY --from=build /k9s/execs/k9s /bin/k9s RUN apk --no-cache add --update ca-certificates \ && apk --no-cache add --update -t deps curl vim \ && TARGET_ARCH=$(arch | sed s/aarch64/arm64/ | sed s/x86_64/amd64/) \ - && curl -L https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/linux/${TARGET_ARCH}/kubectl -o /usr/local/bin/kubectl \ + && curl -f -L https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/linux/${TARGET_ARCH}/kubectl -o /usr/local/bin/kubectl \ && chmod +x /usr/local/bin/kubectl \ && apk del --purge deps