Skip to content

Commit b38e393

Browse files
authored
Merge pull request #3745 from camilamacedo86/bump-go
✨ Add support to go 1.21
2 parents 2ce61fe + 650036d commit b38e393

File tree

40 files changed

+57
-39
lines changed

40 files changed

+57
-39
lines changed

.github/workflows/apidiff.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Setup Go
2020
uses: actions/setup-go@v5
2121
with:
22-
go-version: "~1.20"
22+
go-version: "~1.21"
2323
- name: Execute go-apidiff
2424
uses: joelanford/go-apidiff@v0.8.2
2525
with:

.github/workflows/lint-sample.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Setup Go
1818
uses: actions/setup-go@v5
1919
with:
20-
go-version: '~1.20'
20+
go-version: '~1.21'
2121
- name: Remove pre-installed kustomize
2222
run: sudo rm -f /usr/local/bin/kustomize
2323
- name: Run make test for project-v4-with-deploy-image
@@ -34,7 +34,7 @@ jobs:
3434
- name: Setup Go
3535
uses: actions/setup-go@v5
3636
with:
37-
go-version: '~1.20'
37+
go-version: '~1.21'
3838
- name: Clone the code
3939
uses: actions/checkout@v4
4040
- name: Run linter

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Setup Go
1616
uses: actions/setup-go@v5
1717
with:
18-
go-version: '~1.20'
18+
go-version: '~1.21'
1919
- name: Clone the code
2020
uses: actions/checkout@v4
2121
- name: Run linter

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Set up Go
1818
uses: actions/setup-go@v5
1919
with:
20-
go-version: '~1.20'
20+
go-version: '~1.21'
2121
- name: Run GoReleaser
2222
uses: goreleaser/goreleaser-action@v5
2323
with:

.github/workflows/test-sample-go.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Setup Go
2020
uses: actions/setup-go@v5
2121
with:
22-
go-version: '~1.20'
22+
go-version: '~1.21'
2323

2424
- name: Install Kind
2525
run: go install sigs.k8s.io/kind@v$kind_version

.github/workflows/testdata.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Setup Go
1919
uses: actions/setup-go@v5
2020
with:
21-
go-version: '~1.20'
21+
go-version: '~1.21'
2222
- name: Remove pre-installed kustomize
2323
# This step is needed as the following one tries to remove
2424
# kustomize for each test but has no permission to do so

.github/workflows/unit-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Setup Go
2323
uses: actions/setup-go@v5
2424
with:
25-
go-version: '~1.20'
25+
go-version: '~1.21'
2626
# This step is needed as the following one tries to remove
2727
# kustomize for each test but has no permission to do so
2828
- name: Remove pre-installed kustomize
@@ -52,7 +52,7 @@ jobs:
5252
- name: Setup Go
5353
uses: actions/setup-go@v5
5454
with:
55-
go-version: "1.20"
55+
go-version: "1.21"
5656
- name: Generate the coverage output
5757
run: make test-coverage
5858
- name: Send the coverage output

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Please see https://git.k8s.io/community/CLA.md for more info.
1010

1111
## Prerequisites
1212

13-
- [go](https://golang.org/dl/) version v1.20+.
13+
- [go](https://golang.org/dl/) version v1.21+.
1414
- [docker](https://docs.docker.com/install/) version 17.03+.
1515
- [kubectl](https://kubernetes.io/docs/tasks/tools/install-kubectl/) version v1.11.3+.
1616
- [kustomize](https://github.com/kubernetes-sigs/kustomize/blob/master/site/content/en/docs/Getting%20started/installation.md) v3.1.0+

docs/book/book.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ command = "./litgo.sh"
1717
command = "./markerdocs.sh"
1818

1919
[context.environment]
20-
environment = { GO_VERSION = "1.20" }
20+
environment = { GO_VERSION = "1.21" }
2121

2222
[context.deploy-preview.environment]
23-
environment = { GO_VERSION = "1.20" }
23+
environment = { GO_VERSION = "1.21" }
2424

docs/book/src/component-config-tutorial/testdata/project/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.20 AS builder
2+
FROM golang:1.21 AS builder
33
ARG TARGETOS
44
ARG TARGETARCH
55

0 commit comments

Comments
 (0)