Skip to content

Commit

Permalink
chore: update golang to 1.23
Browse files Browse the repository at this point in the history
Signed-off-by: Jayapriya Pai <[email protected]>
  • Loading branch information
slashpai committed Sep 10, 2024
1 parent bb44be1 commit 36966e3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Update the base image in Makefile when updating golang version. This has to
# be pre-pulled in order to work on GCB.
ARG ARCH
FROM golang:1.22.5 as build
FROM golang:1.23.1 as build

WORKDIR /go/src/sigs.k8s.io/metrics-server
COPY go.mod .
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ CONTAINER_ARCH_TARGETS=$(addprefix container-,$(ALL_ARCHITECTURES))
container:
# Pull base image explicitly. Keep in sync with Dockerfile, otherwise
# GCB builds will start failing.
docker pull golang:1.22.5
docker pull golang:1.23.1
docker build -t $(REGISTRY)/metrics-server-$(ARCH):$(CHECKSUM) --build-arg ARCH=$(ARCH) --build-arg GIT_TAG=$(GIT_TAG) --build-arg GIT_COMMIT=$(GIT_COMMIT) .

.PHONY: container-all
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module sigs.k8s.io/metrics-server

go 1.22.0
go 1.23.0

toolchain go1.22.5
toolchain go1.23.1

require (
github.com/google/go-cmp v0.6.0
Expand Down
4 changes: 2 additions & 2 deletions scripts/go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module sigs.k8s.io/metrics-server/scripts

go 1.22.0
go 1.23.0

toolchain go1.22.5
toolchain go1.23.1

require (
github.com/google/addlicense v1.1.1
Expand Down

0 comments on commit 36966e3

Please sign in to comment.