From 4cf9e0517c2b5849a428d962d13d875b7ee001a3 Mon Sep 17 00:00:00 2001 From: David Benque Date: Wed, 5 Jul 2023 16:31:19 +0200 Subject: [PATCH] [vpa] buildvcs=false --- vertical-pod-autoscaler/Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vertical-pod-autoscaler/Dockerfile b/vertical-pod-autoscaler/Dockerfile index daf58e1fd31b..3aea01ae80e6 100644 --- a/vertical-pod-autoscaler/Dockerfile +++ b/vertical-pod-autoscaler/Dockerfile @@ -8,16 +8,16 @@ ENV GO111MODULE "on" ENV GOARCH=${TARGETARCH} WORKDIR /go/src/k8s.io/autoscaler/vertical-pod-autoscaler/pkg/recommender -RUN env CGO_ENABLED=0 GOARCH=${TARGETARCH} GOOS=linux go build -o vpa-recommender --ldflags "-s" +RUN env CGO_ENABLED=0 GOARCH=${TARGETARCH} GOOS=linux go build -o vpa-recommender -buildvcs=false --ldflags "-s" WORKDIR /go/src/k8s.io/autoscaler/vertical-pod-autoscaler/pkg/recommender-external -RUN env CGO_ENABLED=0 GOARCH=${TARGETARCH} GOOS=linux go build -o vpa-recommender-external-metrics --ldflags "-s" +RUN env CGO_ENABLED=0 GOARCH=${TARGETARCH} GOOS=linux go build -o vpa-recommender-external-metrics -buildvcs=false --ldflags "-s" WORKDIR /go/src/k8s.io/autoscaler/vertical-pod-autoscaler/pkg/admission-controller -RUN env CGO_ENABLED=0 GOARCH=${TARGETARCH} GOOS=linux go build -o vpa-admission-controller --ldflags "-s" +RUN env CGO_ENABLED=0 GOARCH=${TARGETARCH} GOOS=linux go build -o vpa-admission-controller -buildvcs=false --ldflags "-s" WORKDIR /go/src/k8s.io/autoscaler/vertical-pod-autoscaler/pkg/updater -RUN env CGO_ENABLED=0 GOARCH=${TARGETARCH} GOOS=linux go build -o vpa-updater --ldflags "-s" +RUN env CGO_ENABLED=0 GOARCH=${TARGETARCH} GOOS=linux go build -o vpa-updater -buildvcs=false --ldflags "-s" FROM $BASE_IMAGE