Skip to content

Commit

Permalink
fix: security - CVE-2024-45337 - kubectl-shell (#27)
Browse files Browse the repository at this point in the history
* bump kubectl version and change the download url

* bump helm version
  • Loading branch information
yajith authored Dec 17, 2024
1 parent 5396890 commit 74ccf8e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kubectl-shell/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
ARG ALPINE=alpine:latest
FROM ${ALPINE} AS alpine
ARG TARGETARCH
ARG KUBECTL_VERSION=v1.31.0
ARG HELM_VERSION=v3.15.4
ARG KUBECTL_VERSION=v1.31.4
ARG HELM_VERSION=v3.16.4

RUN apk add -U --no-cache bash bash-completion curl jq

# Kubectl CLI
RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/linux/${TARGETARCH}/kubectl && \
RUN curl -LO https://dl.k8s.io/${KUBECTL_VERSION}/bin/linux/${TARGETARCH}/kubectl && \
chmod +x ./kubectl && \
mv ./kubectl /usr/local/bin/kubectl && \
echo -e 'source /usr/share/bash-completion/bash_completion\nsource <(kubectl completion bash)' >>~/.bashrc
Expand Down

0 comments on commit 74ccf8e

Please sign in to comment.