From a76222b12148d571135e92aebb476e5455a96e18 Mon Sep 17 00:00:00 2001 From: Ryan Richard Date: Fri, 4 Apr 2025 14:12:10 -0700 Subject: [PATCH] add kubectl to eks-deployer Dockerfile --- dockerfiles/eks-deployer/Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dockerfiles/eks-deployer/Dockerfile b/dockerfiles/eks-deployer/Dockerfile index ecfbbd1f0..c6361d0d4 100644 --- a/dockerfiles/eks-deployer/Dockerfile +++ b/dockerfiles/eks-deployer/Dockerfile @@ -14,6 +14,10 @@ COPY --from=yq /usr/bin/yq /usr/local/bin/yq RUN bash -c "set -eo pipefail; curl -fsL https://carvel.dev/install.sh | bash" && \ ytt version && kapp version && kbld version && kwt version && imgpkg version && vendir version +# Install latest kubectl. +RUN curl -sfL "https://dl.k8s.io/release/$(curl -sfL https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" \ + -o /bin/kubectl && chmod u+x /bin/kubectl + # Install aws-iam-authenticator. # This gets installed automatically via eksctl, but currently it downloads v0.5.2, # which will give us a v1alpha1 execcredential rather than a v1beta1 which we want.