forked from kubernetes/autoscaler
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from spectrocloud/PCP-1959
PCP-1959: Set up spectro release process
- Loading branch information
Showing
6 changed files
with
111 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
FROM --platform=$TARGETPLATFORM gcr.io/spectro-images-public/golang:1.21-alpine as builder | ||
ARG TARGETOS | ||
ARG TARGETARCH | ||
ARG CRYPTO_LIB | ||
ENV GOEXPERIMENT=${CRYPTO_LIB:+boringcrypto} | ||
|
||
WORKDIR /workspace | ||
|
||
COPY . . | ||
|
||
RUN apk -U add coreutils gcc musl-dev | ||
|
||
RUN mkdir -p bin | ||
|
||
RUN if [ ${CRYPTO_LIB} ]; \ | ||
then \ | ||
GOARCH=${ARCH} go-build-fips.sh -a -o bin/cluster-autoscaler -mod=readonly main.go ;\ | ||
else \ | ||
GOARCH=${ARCH} go-build-static.sh -a -o bin/cluster-autoscaler -mod=readonly main.go ;\ | ||
fi | ||
RUN if [ "${CRYPTO_LIB}" ]; then assert-static.sh bin/cluster-autoscaler; fi | ||
RUN if [ "${CRYPTO_LIB}" ]; then assert-fips.sh bin/cluster-autoscaler; fi | ||
RUN scan-govulncheck.sh bin/cluster-autoscaler | ||
|
||
FROM --platform=$TARGETPLATFORM gcr.io/distroless/static:nonroot-amd64 | ||
WORKDIR / | ||
COPY --from=builder /workspace/bin/cluster-autoscaler . | ||
CMD ["/cluster-autoscaler"] |
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,6 +1,6 @@ | ||
module k8s.io/autoscaler/cluster-autoscaler | ||
|
||
go 1.19 | ||
go 1.21 | ||
|
||
require ( | ||
cloud.google.com/go v0.97.0 | ||
|
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