Merge pull request #119592 from rayandas/rayandas-kubectl-image-update

Add additional utilities to kubectl image
This commit is contained in:
Kubernetes Prow Robot 2023-08-27 06:07:22 -07:00 committed by GitHub
commit b4db99efb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 2 deletions

View File

@ -146,6 +146,8 @@ dependencies:
- name: "registry.k8s.io/debian-base: dependents"
version: bookworm-v1.0.0
refPaths:
- path: build/server-image/kubectl/Dockerfile
match: FROM\s+registry\.k8s\.io\/build-image\/debian-base:[a-zA-Z]+\-v((([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)
- path: cluster/images/etcd/Makefile
match: BASEIMAGE\?\=registry\.k8s\.io\/build-image\/debian-base:[a-zA-Z]+\-v((([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)
- path: cluster/images/etcd/Makefile

View File

@ -14,10 +14,21 @@
# Dockerfile used for the kubectl image.
ARG BASEIMAGE
ARG BINARY
FROM "${BASEIMAGE}"
FROM registry.k8s.io/build-image/debian-base:bookworm-v1.0.0
COPY ${BINARY} /bin/
# Install additional utilities
RUN apt update \
&& apt install -y bash \
grep \
sed \
gawk \
coreutils \
jq \
diffutils \
&& rm -rf /var/lib/apt/lists/*
ENTRYPOINT ["/bin/kubectl"]