build: add support for go 1.22

Few day's back go 1.22 is release. Let's add that
as valid version to build on. Also, adding 1.22 as
test matric for linux build CI.

https://tip.golang.org/doc/go1.22

Signed-off-by: subhamkrai <srai@redhat.com>
This commit is contained in:
subhamkrai committed 2024-03-27 10:34:21 +05:30
1 parent cce4d52475
commit 43e0c1cdb3
5 files changed
+3501 -755

No files matched your search

+1 -1
View File
@@ -71,7 +71,7 @@ jobs:
strategy:
fail-fast: false
matrix:
go-version: ["1.21"]
go-version: ["1.21","1.22"]
steps:
- name: checkout
uses: actions/checkout@v4
+1 -1
View File
@@ -32,7 +32,7 @@ all: build
# Controller-gen version
# f284e2e8... is master ahead of v0.5.0 which has ability to generate embedded objectmeta in CRDs
CONTROLLER_GEN_VERSION=v0.11.3
CONTROLLER_GEN_VERSION=v0.14.0
# Set GOBIN
ifeq (,$(shell go env GOBIN))
+1 -1
View File
@@ -48,7 +48,7 @@ GO_TEST_FLAGS ?=
# ====================================================================================
# Setup go environment
GO_SUPPORTED_VERSIONS ?= 1.21
GO_SUPPORTED_VERSIONS ?= 1.21|1.22
GO_PACKAGES := $(foreach t,$(GO_SUBDIRS),$(GO_PROJECT)/$(t)/...)
GO_INTEGRATION_TEST_PACKAGES := $(foreach t,$(GO_INTEGRATION_TESTS_SUBDIRS),$(GO_PROJECT)/$(t)/integration)
File diff suppressed because it is too large. Load diff
+1749 -376
View File
File diff suppressed because it is too large. Load diff