Skip to content

Commit c7b7891

Browse files
Updating Kubectl version in container image to fix CVE (#246)
Signed-off-by: Vishesh Tanksale <[email protected]>
1 parent 7bbe9f4 commit c7b7891

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deployments/container/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
2626

2727
# Install kubectl for must-gather and helm upgrades hooks
2828
RUN if [ "$TARGETARCH" = "x86_64" ]; then OS_ARCH="amd64"; elif [ "$TARGETARCH" = "aarch64" ]; then OS_ARCH="arm64"; else OS_ARCH="$TARGETARCH"; fi \
29-
&& curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/${OS_ARCH}/kubectl \
29+
&& curl -LO https://dl.k8s.io/release/$(curl -Ls https://dl.k8s.io/release/stable.txt)/bin/linux/${OS_ARCH}/kubectl \
3030
&& chmod +x ./kubectl
3131

3232
# Use distroless as minimal base image to package the manager binary

0 commit comments

Comments
 (0)