Skip to content

Commit

Permalink
fix(vpa): run containers as nonroot user by default
Browse files Browse the repository at this point in the history
Signed-off-by: David van der Spek <[email protected]>
  • Loading branch information
davidspek committed Dec 11, 2024
1 parent ef19cf8 commit 8dd3dcd
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 8dd3dcd

Please sign in to comment.