Merge pull request #120219 from rayandas/rayan-revert-kubectl-changes
Revert Dockerfile changes for kubectl image.
This commit is contained in:
		@@ -146,8 +146,6 @@ dependencies:
 | 
				
			|||||||
  - name: "registry.k8s.io/debian-base: dependents"
 | 
					  - name: "registry.k8s.io/debian-base: dependents"
 | 
				
			||||||
    version: bookworm-v1.0.0
 | 
					    version: bookworm-v1.0.0
 | 
				
			||||||
    refPaths:
 | 
					    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
 | 
					    - 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-]+)*))?)
 | 
					      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
 | 
					    - path: cluster/images/etcd/Makefile
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -14,21 +14,10 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# Dockerfile used for the kubectl image.
 | 
					# Dockerfile used for the kubectl image.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					ARG BASEIMAGE
 | 
				
			||||||
ARG BINARY
 | 
					ARG BINARY
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
FROM registry.k8s.io/build-image/debian-base:bookworm-v1.0.0
 | 
					FROM "${BASEIMAGE}"
 | 
				
			||||||
COPY ${BINARY} /bin/
 | 
					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"]
 | 
					ENTRYPOINT ["/bin/kubectl"]
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user