Skip to content

Commit dd22359

Browse files
authored
Merge pull request #2223 from justaugustus/go117-default
[go1.17] Default to go1.17
2 parents 975fd9f + 7cab583 commit dd22359

File tree

13 files changed

+109
-33
lines changed

13 files changed

+109
-33
lines changed

Dockerfile-kubepkg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM golang:1.16.7-buster AS builder
15+
FROM golang:1.17-buster AS builder
1616

1717
ENV GO111MODULE=on
1818

Dockerfile-kubepkg-rpm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM golang:1.16.7-buster AS builder
15+
FROM golang:1.17-buster AS builder
1616

1717
ENV GO111MODULE=on
1818

cmd/vulndash/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ SHELL=/bin/bash -o pipefail
2020

2121
REGISTRY ?= gcr.io/k8s-staging-artifact-promoter
2222
IMGNAME = vulndash
23-
IMAGE_VERSION ?= v0.4.3-7
23+
IMAGE_VERSION ?= v0.4.3-8
2424

2525
IMAGE = $(REGISTRY)/$(IMGNAME)
2626

2727
TAG ?= $(shell git describe --tags --always --dirty)
2828

2929
# Build args
30-
GO_VERSION ?= 1.16.7
30+
GO_VERSION ?= 1.17
3131
OS_CODENAME ?= buster
3232
DISTROLESS_IMAGE ?= static-debian10
3333

cmd/vulndash/variants.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
variants:
22
default:
3-
IMAGE_VERSION: 'v0.4.3-7'
4-
GO_VERSION: '1.16.7'
3+
IMAGE_VERSION: 'v0.4.3-8'
4+
GO_VERSION: '1.17'
55
OS_CODENAME: 'buster'
66
DISTROLESS_IMAGE: 'static-debian10'

dependencies.yaml

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ dependencies:
6060

6161
# Golang
6262
- name: "golang"
63-
version: 1.16.7
63+
version: 1.17
6464
refPaths:
6565
- path: Dockerfile-kubepkg
6666
match: FROM golang:\d+.\d+(alpha|beta|rc)?\.?(\d+)-(bullseye|buster) AS builder
@@ -84,12 +84,12 @@ dependencies:
8484
match: FROM golang:\d+.\d+(alpha|beta|rc)?\.?(\d+)-(bullseye|buster)
8585

8686
# Golang pre-releases are denoted as `1.y<pre-release stage>.z`
87-
# Example: go1.16rc1
87+
# Example: go1.17rc1
8888
#
8989
# This entry is a stub of the major version to allow dependency checks to
9090
# pass when building Kubernetes using a pre-release of Golang.
9191
- name: "golang: 1.<major>"
92-
version: 1.16
92+
version: 1.17
9393
refPaths:
9494
- path: images/build/cross/Makefile
9595
match: GO_MAJOR_VERSION\ \?=\ \d+.\d+(alpha|beta|rc)?\.?(\d+)?
@@ -100,8 +100,18 @@ dependencies:
100100
- path: images/build/go-runner/variants.yaml
101101
match: "GO_MAJOR_VERSION: '\\d+.\\d+'"
102102

103+
- name: "golang: go.mod"
104+
version: 1.17
105+
refPaths:
106+
- path: go.mod
107+
match: go \d+.\d+
108+
- path: images/build/go-runner/go.mod
109+
match: go \d+.\d+
110+
- path: packages/deb/go.mod
111+
match: go \d+.\d+
112+
103113
- name: "golang: after kubernetes/kubernetes update"
104-
version: 1.16.7
114+
version: 1.17
105115
refPaths:
106116
- path: images/releng/k8s-ci-builder/Dockerfile
107117
match: FROM golang:\d+.\d+(alpha|beta|rc)?\.?(\d+)-\${OS_CODENAME} AS builder
@@ -118,15 +128,15 @@ dependencies:
118128
# Golang images
119129

120130
# Represents the targeted Kubernetes version at the time the images
121-
# are to be created e.g., 'v1.22.0'
131+
# are to be created e.g., 'v1.100.0'
122132
#
123133
# Note: There is no need to increment the patch version of this variable.
124134
# The reason for the inclusion of the patch version here is to satisfy
125135
# a SemVer regex on the IMAGE_VERSION.
126136
#
127137
# Example:
128-
# - v1.22.0-go1.16-buster.0 satisfies SemVer regex, while:
129-
# - v1.22-go1.16-buster.0 does not
138+
# - v1.100.0-go1.17-buster.0 satisfies SemVer regex, while:
139+
# - v1.100-go1.17-buster.0 does not
130140
- name: "Kubernetes version (stable.0)"
131141
version: v1.22.0
132142
refPaths:
@@ -148,15 +158,15 @@ dependencies:
148158
match: REVISION:\ '\d+'
149159

150160
- name: "k8s.gcr.io/artifact-promoter/vulndash"
151-
version: v0.4.3-7
161+
version: v0.4.3-8
152162
refPaths:
153163
- path: cmd/vulndash/Makefile
154164
match: IMAGE_VERSION\ \?=\ v((([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)-([0-9]+)
155165
- path: cmd/vulndash/variants.yaml
156166
match: v((([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)-([0-9]+)
157167

158168
- name: "k8s.gcr.io/build-image/go-runner"
159-
version: v2.3.1-go1.16.7-buster.0
169+
version: v2.3.1-go1.17-buster.0
160170
refPaths:
161171
- path: images/build/go-runner/variants.yaml
162172
match: v((([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)
@@ -170,14 +180,13 @@ dependencies:
170180
match: REVISION:\ '\d+'
171181

172182
- name: "k8s.gcr.io/build-image/kube-cross"
173-
version: v1.22.0-go1.16.7-buster.0
183+
version: v1.23.0-go1.17-buster.0
174184
refPaths:
175185
- path: images/build/cross/variants.yaml
176186
match: "IMAGE_VERSION: 'v((([0-9]+)\\.([0-9]+)\\.([0-9]+)(?:-([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)'"
177187

178-
# TODO: Consider capturing this in "golang: 1.<major>" instead
179188
- name: "k8s.gcr.io/build-image/kube-cross: config variant"
180-
version: go1.16-buster
189+
version: go1.17-buster
181190
refPaths:
182191
- path: images/build/cross/variants.yaml
183192
match: "CONFIG: 'go\\d+.\\d+-(bullseye|buster)'"
@@ -234,7 +243,6 @@ dependencies:
234243
- path: images/build/cross/variants.yaml
235244
match: "IMAGE_VERSION: 'v((([0-9]+)\\.([0-9]+)\\.([0-9]+)(?:-([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)'"
236245

237-
# TODO: Consider capturing this in "golang: 1.<major>" instead
238246
- name: "k8s.gcr.io/build-image/kube-cross: config variant (next candidate)"
239247
version: go1.17-buster
240248
refPaths:
@@ -289,7 +297,6 @@ dependencies:
289297
- path: images/build/cross/variants.yaml
290298
match: "IMAGE_VERSION: 'v((([0-9]+)\\.([0-9]+)\\.([0-9]+)(?:-([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)'"
291299

292-
# TODO: Consider capturing this in "golang: 1.<major>" instead
293300
- name: "k8s.gcr.io/build-image/kube-cross: config variant (for previous release branches)"
294301
version: go1.15-buster
295302
refPaths:

go.mod

Lines changed: 70 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module k8s.io/release
22

3-
go 1.16
3+
go 1.17
44

55
require (
66
cloud.google.com/go/containeranalysis v0.1.0
@@ -46,3 +46,72 @@ require (
4646
sigs.k8s.io/yaml v1.2.0
4747
sigs.k8s.io/zeitgeist v0.3.0
4848
)
49+
50+
require (
51+
cloud.google.com/go v0.92.1 // indirect
52+
github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78 // indirect
53+
github.com/BurntSushi/toml v0.3.1 // indirect
54+
github.com/Microsoft/go-winio v0.5.0 // indirect
55+
github.com/ProtonMail/go-crypto v0.0.0-20210428141323-04723f9f07d7 // indirect
56+
github.com/StackExchange/wmi v1.2.1 // indirect
57+
github.com/VividCortex/ewma v1.1.1 // indirect
58+
github.com/acomagu/bufpipe v1.0.3 // indirect
59+
github.com/aws/aws-sdk-go v1.37.6 // indirect
60+
github.com/cenkalti/backoff/v4 v4.1.0 // indirect
61+
github.com/containerd/stargz-snapshotter/estargz v0.7.0 // indirect
62+
github.com/davecgh/go-spew v1.1.1 // indirect
63+
github.com/docker/cli v20.10.7+incompatible // indirect
64+
github.com/docker/distribution v2.7.1+incompatible // indirect
65+
github.com/docker/docker v20.10.7+incompatible // indirect
66+
github.com/docker/docker-credential-helpers v0.6.3 // indirect
67+
github.com/emirpasic/gods v1.12.0 // indirect
68+
github.com/fatih/color v1.10.0 // indirect
69+
github.com/fvbommel/sortorder v1.0.1 // indirect
70+
github.com/go-git/gcfg v1.5.0 // indirect
71+
github.com/go-git/go-billy/v5 v5.3.1 // indirect
72+
github.com/go-ole/go-ole v1.2.5 // indirect
73+
github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect
74+
github.com/golang/snappy v0.0.3 // indirect
75+
github.com/gomarkdown/markdown v0.0.0-20200824053859-8c8b3816f167 // indirect
76+
github.com/google/go-cmp v0.5.6 // indirect
77+
github.com/google/go-github/v33 v33.0.0 // indirect
78+
github.com/google/go-querystring v1.0.0 // indirect
79+
github.com/googleapis/gax-go/v2 v2.0.5 // indirect
80+
github.com/hashicorp/errwrap v1.0.0 // indirect
81+
github.com/hashicorp/go-cleanhttp v0.5.1 // indirect
82+
github.com/hashicorp/go-multierror v1.0.0 // indirect
83+
github.com/hashicorp/go-retryablehttp v0.6.4 // indirect
84+
github.com/imdario/mergo v0.3.12 // indirect
85+
github.com/inconshreveable/mousetrap v1.0.0 // indirect
86+
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
87+
github.com/jmespath/go-jmespath v0.4.0 // indirect
88+
github.com/kevinburke/ssh_config v0.0.0-20201106050909-4977a11b4351 // indirect
89+
github.com/klauspost/compress v1.13.0 // indirect
90+
github.com/mattn/go-colorable v0.1.8 // indirect
91+
github.com/mattn/go-runewidth v0.0.12 // indirect
92+
github.com/mitchellh/go-homedir v1.1.0 // indirect
93+
github.com/mmarkdown/mmark v2.0.40+incompatible // indirect
94+
github.com/moby/term v0.0.0-20201216013528-df9cb8a40635 // indirect
95+
github.com/opencontainers/go-digest v1.0.0 // indirect
96+
github.com/opencontainers/image-spec v1.0.2-0.20200206005212-79b036d80240 // indirect
97+
github.com/pmezard/go-difflib v1.0.0 // indirect
98+
github.com/rivo/uniseg v0.2.0 // indirect
99+
github.com/sergi/go-diff v1.1.0 // indirect
100+
github.com/spiegel-im-spiegel/errs v1.0.2 // indirect
101+
github.com/src-d/gcfg v1.4.0 // indirect
102+
github.com/xanzy/go-gitlab v0.43.0 // indirect
103+
github.com/xanzy/ssh-agent v0.3.0 // indirect
104+
go.opencensus.io v0.23.0 // indirect
105+
golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b // indirect
106+
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect
107+
golang.org/x/sys v0.0.0-20210806184541-e5e7981a1069 // indirect
108+
golang.org/x/text v0.3.6 // indirect
109+
golang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect
110+
google.golang.org/appengine v1.6.7 // indirect
111+
google.golang.org/grpc v1.39.1 // indirect
112+
google.golang.org/protobuf v1.27.1 // indirect
113+
gopkg.in/src-d/go-billy.v4 v4.3.2 // indirect
114+
gopkg.in/src-d/go-git.v4 v4.13.1 // indirect
115+
gopkg.in/warnings.v0 v0.1.2 // indirect
116+
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
117+
)

images/build/cross/Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,18 @@ SHELL=/bin/bash -o pipefail
1818
IMGNAME = kube-cross
1919

2020
# Represents the targeted Kubernetes version at the time the images
21-
# are to be created e.g., 'v1.22.0'
21+
# are to be created e.g., 'v1.100.0'
2222
#
2323
# Note: There is no need to increment the patch version of this variable.
2424
# The reason for the inclusion of the patch version here is to satisfy
2525
# a SemVer regex on the IMAGE_VERSION.
2626
#
2727
# Example:
28-
# - v1.22.0-go1.16-buster.0 satisfies SemVer regex, while:
29-
# - v1.22-go1.16-buster.0 does not
28+
# - v1.100.0-go1.17-buster.0 satisfies SemVer regex, while:
29+
# - v1.100-go1.17-buster.0 does not
3030
KUBERNETES_VERSION ?= v1.22.0
31-
GO_VERSION ?= 1.16.7
32-
GO_MAJOR_VERSION ?= 1.16
31+
GO_VERSION ?= 1.17
32+
GO_MAJOR_VERSION ?= 1.17
3333
OS_CODENAME ?= buster
3434
REVISION ?= 0
3535
TYPE ?= default

images/build/go-runner/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ include $(CURDIR)/../../Makefile.common-image
1717

1818
IMGNAME = go-runner
1919
APP_VERSION = $(shell cat VERSION)
20-
GO_MAJOR_VERSION ?= 1.16
20+
GO_MAJOR_VERSION ?= 1.17
2121
REVISION ?= 0
2222

2323
# Build args
24-
GO_VERSION ?= 1.16.7
24+
GO_VERSION ?= 1.17
2525
OS_CODENAME ?= buster
2626
DISTROLESS_IMAGE ?= static-debian10
2727

images/build/go-runner/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module k8s.io/release/images/build/go-runner
22

3-
go 1.16
3+
go 1.17

images/releng/k8s-ci-builder/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ARG OS_CODENAME
1717

1818
# The Golang version for the builder image should always be explicitly set to
1919
# the Golang version of the kubernetes/kubernetes active development branch
20-
FROM golang:1.16.7-${OS_CODENAME} AS builder
20+
FROM golang:1.17-${OS_CODENAME} AS builder
2121

2222
WORKDIR /go/src/k8s.io/release
2323

0 commit comments

Comments
 (0)