Skip to content

Commit 212ff8b

Browse files
committed
chore: dump go version to 1.22
Signed-off-by: Rory Z <[email protected]>
1 parent 7305791 commit 212ff8b

35 files changed

+428
-288
lines changed

.github/workflows/cts.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- uses: actions/checkout@v4
3737
- uses: actions/setup-go@v5
3838
with:
39-
go-version: '1.21'
39+
go-version-file: 'go.mod'
4040
- name: install kubebuilder
4141
run: |
4242
OS=$(uname -s | tr '[:upper:]' '[:lower:]')
@@ -128,7 +128,7 @@ jobs:
128128
- uses: actions/checkout@v4
129129
- uses: actions/setup-go@v5
130130
with:
131-
go-version: '1.21'
131+
go-version-file: 'go.mod'
132132
- name: Deploy operator
133133
timeout-minutes: 5
134134
uses: ./.github/actions/deploy-operator

.github/workflows/deploy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
- uses: actions/checkout@v4
4848
- uses: actions/setup-go@v5
4949
with:
50-
go-version: '1.21'
50+
go-version-file: 'go.mod'
5151
- name: Build image
5252
env:
5353
IMG: "emqx/emqx-operator-controller:${{ github.sha }}"

.github/workflows/test.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- uses: actions/checkout@v4
2222
- uses: actions/setup-go@v5
2323
with:
24-
go-version: '1.21'
24+
go-version-file: 'go.mod'
2525
- uses: golangci/golangci-lint-action@v4
2626
with:
2727
##https://github.com/golangci/golangci-lint-action/issues/807
@@ -80,7 +80,7 @@ jobs:
8080
- uses: actions/checkout@v4
8181
- uses: actions/setup-go@v5
8282
with:
83-
go-version: '1.21'
83+
go-version-file: 'go.mod'
8484
- run: go install github.com/onsi/ginkgo/v2/ginkgo@latest
8585
- name: Install Telepresence
8686
env:
@@ -112,7 +112,7 @@ jobs:
112112
- uses: actions/checkout@v4
113113
- uses: actions/setup-go@v5
114114
with:
115-
go-version: '1.21'
115+
go-version-file: 'go.mod'
116116
- run: make test
117117
- uses: actions/upload-artifact@v4
118118
with:

.github/workflows/upgrade.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
fetch-depth: 0
3838
- uses: actions/setup-go@v5
3939
with:
40-
go-version: '1.21'
40+
go-version-file: 'go.mod'
4141
- name: Get pre stable version
4242
## Just get the last stable version, ignore the pre-release version
4343
run: |

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build the manager binary
2-
FROM golang:1.21 as builder
2+
FROM golang:1.22 as builder
33

44
WORKDIR /workspace
55
# Copy the Go Modules manifests

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ TELEPRESENCE_GEN ?= $(LOCALBIN)/telepresence
112112

113113
## Tool Versions
114114
KUSTOMIZE_VERSION ?= v4
115-
CONTROLLER_TOOLS_VERSION ?= v0.9.2
115+
CONTROLLER_TOOLS_VERSION ?= latest
116116
ENVTEST_VERSION ?= latest
117117
CRD_REF_DOCS_VERSION ?= latest
118118

apis/apps/v1beta3/zz_generated.deepcopy.go

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apis/apps/v1beta4/zz_generated.deepcopy.go

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apis/apps/v2alpha1/zz_generated.deepcopy.go

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apis/apps/v2beta1/emqx_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
)
2323

2424
// +kubebuilder:object:root=true
25-
// +kubebuilder:resource:shortName=emqx
25+
// +kubebuilder:resource:shortName=emqx,path=emqxes
2626
// +kubebuilder:storageversion
2727
// +kubebuilder:subresource:status
2828
// +kubebuilder:subresource:scale:specpath=.spec.replicantTemplate.spec.replicas,statuspath=.status.replicantNodeReplicas

0 commit comments

Comments
 (0)