Skip to content

Commit

Permalink
update kubectl download url
Browse files Browse the repository at this point in the history
  • Loading branch information
usrbinkat committed Sep 25, 2024
1 parent 2f53a04 commit 8836dda
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker/base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,15 @@ ENV DEVCONTAINER="base"
# Install Kubectl
# - https://kubernetes.io
# - github.com/kubernetes/kubernetes
# && export URL="https://storage.googleapis.com/kubernetes-release/release/${VERSION}/bin/linux/${ARCH}/${PKG}" \
RUN echo \
&& export NAME=kubectl \
&& export TEST="${NAME} version --client" \
&& export REPOSITORY="kubernetes/kubernetes" \
&& export VERSION="$(${curl} https://api.github.com/repos/${REPOSITORY}/releases/latest | jq --raw-output .tag_name)" \
&& export ARCH=$(uname -m | awk '{ if ($1 == "x86_64") print "amd64"; else if ($1 == "aarch64" || $1 == "arm64") print "arm64"; else print "unknown" }') \
&& export PKG="${NAME}" \
&& export URL="https://storage.googleapis.com/kubernetes-release/release/${VERSION}/bin/linux/${ARCH}/${PKG}" \
&& export URL="https://dl.k8s.io/release/${VERSION}/bin/linux/${ARCH}/${PKG}" \
&& echo "---------------------------------------------------------"\
&& echo "INFO[${NAME}] Installed:" \
&& echo "INFO[${NAME}] Command: ${NAME}" \
Expand Down

0 comments on commit 8836dda

Please sign in to comment.