Merge pull request #118996 from cpanato/golang121

[go] Bump images, dependencies and versions to go 1.21.0
This commit is contained in:
Kubernetes Prow Robot 2023-09-06 05:34:54 -07:00 committed by GitHub
commit 8703ca2413
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 10 additions and 10 deletions

View File

@ -1 +1 @@
1.20.7
1.21.0

View File

@ -1 +1 @@
v1.27.0-go1.20.7-bullseye.0
v1.29.0-go1.21.0-bullseye.0

View File

@ -97,7 +97,7 @@ readonly KUBE_CONTAINER_RSYNC_PORT=8730
# These are the default versions (image tags) for their respective base images.
readonly __default_distroless_iptables_version=v0.3.1
readonly __default_go_runner_version=v2.3.1-go1.20.7-bullseye.0
readonly __default_go_runner_version=v2.3.1-go1.21.0-bookworm.0
readonly __default_setcap_version=bookworm-v1.0.0
# These are the base images for the Docker-wrapped binaries.

View File

@ -116,7 +116,7 @@ dependencies:
# Golang
- name: "golang: upstream version"
version: 1.20.7
version: 1.21.0
refPaths:
- path: .go-version
- path: build/build-image/cross/VERSION
@ -131,14 +131,14 @@ dependencies:
# This entry is a stub of the major version to allow dependency checks to
# pass when building Kubernetes using a pre-release of Golang.
- name: "golang: 1.<major>"
version: 1.20
version: 1.21
refPaths:
- path: build/build-image/cross/VERSION
- path: hack/lib/golang.sh
match: minimum_go_version=go([0-9]+\.[0-9]+)
- name: "registry.k8s.io/kube-cross: dependents"
version: v1.27.0-go1.20.7-bullseye.0
version: v1.29.0-go1.21.0-bullseye.0
refPaths:
- path: build/build-image/cross/VERSION
@ -168,7 +168,7 @@ dependencies:
match: configs\[DistrolessIptables\] = Config{list\.BuildImageRegistry, "distroless-iptables", "v([0-9]+)\.([0-9]+)\.([0-9]+)"}
- name: "registry.k8s.io/go-runner: dependents"
version: v2.3.1-go1.20.7-bullseye.0
version: v2.3.1-go1.21.0-bookworm.0
refPaths:
- path: build/common.sh
match: __default_go_runner_version=

View File

@ -486,7 +486,7 @@ EOF
local go_version
IFS=" " read -ra go_version <<< "$(GOFLAGS='' go version)"
local minimum_go_version
minimum_go_version=go1.20
minimum_go_version=go1.21
if [[ "${minimum_go_version}" != $(echo -e "${minimum_go_version}\n${go_version[2]}" | sort -s -t. -k 1,1 -k 2,2n -k 3,3n | head -n1) && "${go_version[2]}" != "devel" ]]; then
kube::log::usage_from_stdin <<EOF
Detected go version: ${go_version[*]}.

View File

@ -2186,4 +2186,4 @@ rules:
dir: staging/src/k8s.io/endpointslice
recursive-delete-patterns:
- '*/.gitattributes'
default-go-version: 1.20.7
default-go-version: 1.21.0

View File

@ -16,7 +16,7 @@ REGISTRY ?= registry.k8s.io/e2e-test-images
GOARM ?= 7
DOCKER_CERT_BASE_PATH ?=
QEMUVERSION=v5.1.0-2
GOLANG_VERSION=1.20.7
GOLANG_VERSION=1.21.0
export
ifndef WHAT