Skip to content

Commit ecd36d4

Browse files
authored
Upgrade Go to 1.24 (#7023)
* No changes to source code. * The antrea/codegen image was updated to use Go 1.24. No changes in generated files. * golangci-lint was updated to the latest available version (v1.64.5). * Metrics doc was regenerated. Fixes #7022 Signed-off-by: Antonin Bas <[email protected]>
1 parent fa26350 commit ecd36d4

File tree

7 files changed

+21
-8
lines changed

7 files changed

+21
-8
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ GIT_HOOKS := $(shell find hack/git_client_side_hooks -type f -print)
2323
DOCKER_NETWORK ?= default
2424
TRIVY_TARGET_IMAGE ?=
2525

26-
GOLANGCI_LINT_VERSION := v1.60.3
26+
GOLANGCI_LINT_VERSION := v1.64.5
2727
GOLANGCI_LINT_BINDIR := $(CURDIR)/.golangci-bin
2828
GOLANGCI_LINT_BIN := $(GOLANGCI_LINT_BINDIR)/$(GOLANGCI_LINT_VERSION)/golangci-lint
2929

build/images/codegen/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Here is the table of codegen images that have been uploaded:
2222

2323
| Tag | Change |
2424
| :------------------------ | ----------------------------------------------------------------------------- |
25+
| kubernetes-1.31.1-build.2 | Upgraded Go to v1.24 |
2526
| kubernetes-1.31.1-build.1 | Upgraded controller-gen to v0.16.3 |
2627
| kubernetes-1.31.1-build.0 | Upgraded go.uber.org/mock/mockgen to v0.5.0 |
2728
| kubernetes-1.31.1 | Upgraded K8s libraries to v1.31.1, ubuntu to 24.04 |

build/images/deps/go-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.23
1+
1.24

docs/prometheus-integration.md

+15-3
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,10 @@ due to a non-default GODEBUG=gocachetest=... setting. Sourced from
475475
The number of non-default behaviors executed by the cmd/go package
476476
due to a non-default GODEBUG=gocacheverify=... setting. Sourced from
477477
/godebug/non-default-behavior/gocacheverify:events
478+
- **go_godebug_non_default_behavior_gotestjsonbuildtext_events_total:**
479+
The number of non-default behaviors executed by the cmd/go package due
480+
to a non-default GODEBUG=gotestjsonbuildtext=... setting. Sourced from
481+
/godebug/non-default-behavior/gotestjsonbuildtext:events
478482
- **go_godebug_non_default_behavior_gotypesalias_events_total:**
479483
The number of non-default behaviors executed by the go/types package
480484
due to a non-default GODEBUG=gotypesalias=... setting. Sourced from
@@ -527,6 +531,14 @@ due to a non-default GODEBUG=panicnil=... setting. Sourced from
527531
The number of non-default behaviors executed by the math/rand package
528532
due to a non-default GODEBUG=randautoseed=... setting. Sourced from
529533
/godebug/non-default-behavior/randautoseed:events
534+
- **go_godebug_non_default_behavior_randseednop_events_total:** The
535+
number of non-default behaviors executed by the math/rand package
536+
due to a non-default GODEBUG=randseednop=... setting. Sourced from
537+
/godebug/non-default-behavior/randseednop:events
538+
- **go_godebug_non_default_behavior_rsa1024min_events_total:** The
539+
number of non-default behaviors executed by the crypto/rsa package
540+
due to a non-default GODEBUG=rsa1024min=... setting. Sourced from
541+
/godebug/non-default-behavior/rsa1024min:events
530542
- **go_godebug_non_default_behavior_tarinsecurepath_events_total:**
531543
The number of non-default behaviors executed by the archive/tar package
532544
due to a non-default GODEBUG=tarinsecurepath=... setting. Sourced from
@@ -567,10 +579,10 @@ due to a non-default GODEBUG=x509keypairleaf=... setting. Sourced from
567579
The number of non-default behaviors executed by the crypto/x509 package
568580
due to a non-default GODEBUG=x509negativeserial=... setting. Sourced from
569581
/godebug/non-default-behavior/x509negativeserial:events
570-
- **go_godebug_non_default_behavior_x509sha1_events_total:** The
582+
- **go_godebug_non_default_behavior_x509rsacrt_events_total:** The
571583
number of non-default behaviors executed by the crypto/x509 package
572-
due to a non-default GODEBUG=x509sha1=... setting. Sourced from
573-
/godebug/non-default-behavior/x509sha1:events
584+
due to a non-default GODEBUG=x509rsacrt=... setting. Sourced from
585+
/godebug/non-default-behavior/x509rsacrt:events
574586
- **go_godebug_non_default_behavior_x509usefallbackroots_events_total:**
575587
The number of non-default behaviors executed by the crypto/x509 package
576588
due to a non-default GODEBUG=x509usefallbackroots=... setting. Sourced from

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module antrea.io/antrea
22

3-
go 1.23.0
3+
go 1.24.0
44

55
require (
66
antrea.io/libOpenflow v0.15.0

hack/update-codegen.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function echoerr {
2222
}
2323

2424
ANTREA_ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )/../" && pwd )"
25-
IMAGE_NAME="antrea/codegen:kubernetes-1.31.1-build.1"
25+
IMAGE_NAME="antrea/codegen:kubernetes-1.31.1-build.2"
2626

2727
# We will use git clone to make a working copy of the repository into a
2828
# temporary directory. This requires that all changes have been committed

multicluster/hack/update-codegen.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function echoerr {
2222
}
2323

2424
ANTREA_ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )/../../" && pwd )"
25-
IMAGE_NAME="antrea/codegen:kubernetes-1.31.1-build.1"
25+
IMAGE_NAME="antrea/codegen:kubernetes-1.31.1-build.2"
2626

2727
# We will use git clone to make a working copy of the repository into a
2828
# temporary directory. This requires that all changes have been committed

0 commit comments

Comments
 (0)