Skip to content

Commit

Permalink
update go version to 1.21.5
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviassss authored and haoranleo committed Dec 26, 2023
1 parent 058609f commit cbd381f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:
- id: govulncheck
uses: golang/govulncheck-action@v1
with:
go-version-input: 1.21.3
go-version-input: 1.21.5
go-version-file: go.mod
- id: govulncheck-tests-e2e
uses: golang/govulncheck-action@v1
with:
go-version-input: 1.21.3
go-version-input: 1.21.5
go-version-file: tests/e2e/go.mod
2 changes: 1 addition & 1 deletion .ko.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
defaultBaseImage: registry.k8s.io/build-image/go-runner:v2.3.1-go1.21.3-bookworm.0
defaultBaseImage: registry.k8s.io/build-image/go-runner:v2.3.1-go1.21.5-bookworm.0
14 changes: 7 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
## BUILD ARGS ##
################################################################################
# This build arg allows the specification of a custom Golang image.
ARG GOLANG_IMAGE=golang:1.21.3
ARG GOLANG_IMAGE=golang:1.21.5

# The distroless image on which the CPI manager image is built.
#
# Please do not use "latest". Explicit tags should be used to provide
# deterministic builds. Follow what kubernetes uses to build
# kube-controller-manager, for example for 1.23.x:
# https://github.com/kubernetes/kubernetes/blob/release-1.24/build/common.sh#L94
ARG DISTROLESS_IMAGE=registry.k8s.io/build-image/go-runner:v2.3.1-go1.21.3-bookworm.0
ARG DISTROLESS_IMAGE=registry.k8s.io/build-image/go-runner:v2.3.1-go1.21.5-bookworm.0

################################################################################
## BUILD STAGE ##
Expand All @@ -41,11 +41,11 @@ COPY go.mod go.sum ./
COPY cmd/ cmd/
COPY pkg/ pkg/
RUN GO111MODULE=on CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} GOPROXY=${GOPROXY} \
go build \
-trimpath \
-ldflags="-w -s -X k8s.io/component-base/version.gitVersion=${VERSION}" \
-o=aws-cloud-controller-manager \
cmd/aws-cloud-controller-manager/main.go
go build \
-trimpath \
-ldflags="-w -s -X k8s.io/component-base/version.gitVersion=${VERSION}" \
-o=aws-cloud-controller-manager \
cmd/aws-cloud-controller-manager/main.go

################################################################################
## MAIN STAGE ##
Expand Down

0 comments on commit cbd381f

Please sign in to comment.