Skip to content

Commit

Permalink
Fix downloading kubectl binary for skaffold (#4412)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgalsaleh authored Jan 30, 2024
1 parent 2b655b4 commit f45fa2d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion hack/dev/skaffold.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,20 @@ ENV GO111MODULE=on
ENV PATH="/usr/local/bin:$PATH"

RUN apt-get update && apt-get install -y --no-install-recommends \
curl ca-certificates git gnupg2 s3cmd kubectl \
curl ca-certificates git gnupg2 s3cmd \
&& for i in 1 2 3 4 5 6 7 8; do mkdir -p "/usr/share/man/man$i"; done \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /usr/share/man/man*

# Install Kubectl 1.29
ENV KUBECTL_1_29_VERSION=v1.29.0
ENV KUBECTL_1_29_URL=https://dl.k8s.io/release/${KUBECTL_1_29_VERSION}/bin/linux/amd64/kubectl
ENV KUBECTL_1_29_SHA256SUM=0e03ab096163f61ab610b33f37f55709d3af8e16e4dcc1eb682882ef80f96fd5
RUN curl -fsSLO "${KUBECTL_1_29_URL}" \
&& echo "${KUBECTL_1_29_SHA256SUM} kubectl" | sha256sum -c - \
&& chmod +x kubectl \
&& mv kubectl /usr/local/bin//kubectl

# Install kustomize 5
ENV KUSTOMIZE5_VERSION=5.1.1
ENV KUSTOMIZE5_URL=https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize/v${KUSTOMIZE5_VERSION}/kustomize_v${KUSTOMIZE5_VERSION}_linux_amd64.tar.gz
Expand Down

0 comments on commit f45fa2d

Please sign in to comment.