Skip to content

Commit

Permalink
Merge pull request #7591 from davidspek/fix/vpa-nonroot
Browse files Browse the repository at this point in the history
feat(vpa): run containers as nonroot user by default
  • Loading branch information
k8s-ci-robot authored Dec 11, 2024
2 parents 723a3bb + 8dd3dcd commit 756db6a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ ARG TARGETOS TARGETARCH

RUN CGO_ENABLED=0 LD_FLAGS=-s GOARCH=$TARGETARCH GOOS=$TARGETOS go build -C pkg/admission-controller -o admission-controller-$TARGETARCH

FROM gcr.io/distroless/static:latest
FROM gcr.io/distroless/static:nonroot

ARG TARGETARCH

Expand Down
2 changes: 1 addition & 1 deletion vertical-pod-autoscaler/pkg/recommender/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ ARG TARGETOS TARGETARCH

RUN CGO_ENABLED=0 LD_FLAGS=-s GOARCH=$TARGETARCH GOOS=$TARGETOS go build -C pkg/recommender -o recommender-$TARGETARCH

FROM gcr.io/distroless/static:latest
FROM gcr.io/distroless/static:nonroot

ARG TARGETARCH

Expand Down
2 changes: 1 addition & 1 deletion vertical-pod-autoscaler/pkg/updater/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ ARG TARGETOS TARGETARCH

RUN CGO_ENABLED=0 LD_FLAGS=-s GOARCH=$TARGETARCH GOOS=$TARGETOS go build -C pkg/updater -o updater-$TARGETARCH

FROM gcr.io/distroless/static:latest
FROM gcr.io/distroless/static:nonroot

ARG TARGETARCH

Expand Down

0 comments on commit 756db6a

Please sign in to comment.