Skip to content

Commit

Permalink
Bump go version to 1.19
Browse files Browse the repository at this point in the history
Signed-off-by: JoaoBraveCoding <[email protected]>
  • Loading branch information
JoaoBraveCoding committed Mar 17, 2023
1 parent 9e3a61a commit bb74ca6
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 760 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.17.13 as build
FROM golang:1.19.7 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 @@ -44,7 +44,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.17.13
docker pull golang:1.19.7
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
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module sigs.k8s.io/metrics-server

go 1.17
go 1.19

require (
github.com/google/addlicense v1.0.0
Expand Down
Loading

0 comments on commit bb74ca6

Please sign in to comment.