-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: bump vpa + update container builds
Signed-off-by: David van der Spek <[email protected]>
- Loading branch information
Showing
30 changed files
with
284 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Copyright 2024 The Kubernetes Authors. All rights reserved | ||
# Copyright 2017 The Kubernetes Authors. All rights reserved | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
|
@@ -12,11 +12,22 @@ | |
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
FROM --platform=$BUILDPLATFORM golang:1.23.3 AS builder | ||
|
||
ENV GOPATH=/gopath/ | ||
ENV PATH=$GOPATH/bin:$PATH | ||
|
||
COPY . /gopath/src/k8s.io/autoscaler/multidimensional-pod-autoscaler | ||
WORKDIR /gopath/src/k8s.io/autoscaler/multidimensional-pod-autoscaler | ||
|
||
ARG TARGETOS TARGETARCH | ||
|
||
RUN CGO_ENABLED=0 LD_FLAGS=-s GOARCH=$TARGETARCH GOOS=$TARGETOS go build -C pkg/recommender -mod vendor -o recommender-$TARGETARCH | ||
|
||
FROM gcr.io/distroless/static:latest | ||
MAINTAINER Krzysztof Grygiel "[email protected]" | ||
|
||
ARG ARCH | ||
COPY recommender-$ARCH /recommender | ||
ARG TARGETARCH | ||
|
||
COPY --from=builder /gopath/src/k8s.io/autoscaler/multidimensional-pod-autoscaler/pkg/recommender/recommender-$TARGETARCH /recommender | ||
|
||
ENTRYPOINT ["/recommender"] | ||
CMD ["--v=4", "--stderrthreshold=info", "--prometheus-address=http://prometheus.monitoring.svc"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Copyright 2024 The Kubernetes Authors. All rights reserved | ||
# Copyright 2016 The Kubernetes Authors. All rights reserved | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
|
@@ -12,12 +12,22 @@ | |
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
FROM --platform=$BUILDPLATFORM golang:1.23.3 AS builder | ||
|
||
ENV GOPATH=/gopath/ | ||
ENV PATH=$GOPATH/bin:$PATH | ||
|
||
COPY . /gopath/src/k8s.io/autoscaler/multidimensional-pod-autoscaler | ||
WORKDIR /gopath/src/k8s.io/autoscaler/multidimensional-pod-autoscaler | ||
|
||
ARG TARGETOS TARGETARCH | ||
|
||
RUN CGO_ENABLED=0 LD_FLAGS=-s GOARCH=$TARGETARCH GOOS=$TARGETOS go build -C pkg/updater -mod vendor -o updater-$TARGETARCH | ||
|
||
FROM gcr.io/distroless/static:latest | ||
MAINTAINER Marcin Wielgus "[email protected]" | ||
|
||
ARG ARCH | ||
COPY updater-$ARCH /updater | ||
ARG TARGETARCH | ||
|
||
COPY --from=builder /gopath/src/k8s.io/autoscaler/multidimensional-pod-autoscaler/pkg/updater/updater-$TARGETARCH /updater | ||
|
||
ENTRYPOINT ["/updater"] | ||
CMD ["--v=4", "--stderrthreshold=info"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
...utoscaler/vertical-pod-autoscaler/pkg/apis/autoscaling.k8s.io/v1/zz_generated.deepcopy.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.