Skip to content

Commit 3caf64a

Browse files
committed
Update go version to 1.17
1 parent 0036a35 commit 3caf64a

File tree

18 files changed

+31
-18
lines changed

18 files changed

+31
-18
lines changed

.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@v2
2020
with:
21-
go-version: '1.16'
21+
go-version: '1.17'
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
@@ -24,7 +24,7 @@ jobs:
2424
- name: Setup Go
2525
uses: actions/setup-go@v2
2626
with:
27-
go-version: '1.16'
27+
go-version: '1.17'
2828
# This step is needed as the following one tries to remove
2929
# kustomize for each test but has no permission to do so
3030
- name: Remove pre-installed kustomize
@@ -54,7 +54,7 @@ jobs:
5454
- name: Setup Go
5555
uses: actions/setup-go@v2
5656
with:
57-
go-version: '1.16'
57+
go-version: '1.17'
5858
- name: Generate the coverage output
5959
run: make test-coverage
6060
- name: Send the coverage output

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.16 as builder
2+
FROM golang:1.17 as builder
33

44
WORKDIR /workspace
55
# Copy the Go Modules manifests

docs/book/src/component-config-tutorial/testdata/project/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module tutorial.kubebuilder.io/project
22

3-
go 1.16
3+
go 1.17
44

55
require (
66
k8s.io/apimachinery v0.21.2

docs/book/src/cronjob-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.16 as builder
2+
FROM golang:1.17 as builder
33

44
WORKDIR /workspace
55
# Copy the Go Modules manifests

docs/book/src/cronjob-tutorial/testdata/project/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module tutorial.kubebuilder.io/project
22

3-
go 1.16
3+
go 1.17
44

55
require (
66
github.com/onsi/ginkgo v1.16.4

docs/book/src/multiversion-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.16 as builder
2+
FROM golang:1.17 as builder
33

44
WORKDIR /workspace
55
# Copy the Go Modules manifests

docs/book/utils/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module sigs.k8s.io/kubebuilder/docs/book/utils
22

3-
go 1.16
3+
go 1.17

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module sigs.k8s.io/kubebuilder/v3
22

3-
go 1.16
3+
go 1.17
44

55
require (
66
github.com/cloudflare/cfssl v1.5.0 // for `kubebuilder alpha config-gen`

pkg/plugins/golang/go_version_test.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,19 @@ var _ = Describe("checkGoVersion", func() {
182182
Entry("for go 1.16.2", "go1.16.2"),
183183
Entry("for go 1.16.3", "go1.16.3"),
184184
Entry("for go 1.16.4", "go1.16.4"),
185+
Entry("for go 1.16.5", "go1.16.5"),
186+
Entry("for go 1.16.6", "go1.16.6"),
187+
Entry("for go 1.16.7", "go1.16.7"),
188+
Entry("for go 1.16.8", "go1.16.8"),
189+
Entry("for go 1.16.9", "go1.16.9"),
190+
Entry("for go 1.16.10", "go1.16.10"),
191+
Entry("for go 1.16.11", "go1.16.11"),
192+
Entry("for go 1.16.12", "go1.16.12"),
193+
Entry("for go 1.17.1", "go1.17.1"),
194+
Entry("for go 1.17.2", "go1.17.2"),
195+
Entry("for go 1.17.3", "go1.17.3"),
196+
Entry("for go 1.17.4", "go1.17.4"),
197+
Entry("for go 1.17.5", "go1.17.5"),
185198
)
186199

187200
DescribeTable("should return an error for non-supported go versions",

0 commit comments

Comments
 (0)