Skip to content

Commit

Permalink
Merge pull request kubernetes#119830 from jeremyrickard/1207-1.26
Browse files Browse the repository at this point in the history
[release-1.26] releng/go: Bump images, versions and deps to use Go 1.20.7
  • Loading branch information
k8s-ci-robot committed Aug 8, 2023
2 parents b93a5b8 + e791a3f commit 1171161
Show file tree
Hide file tree
Showing 9 changed files with 57 additions and 56 deletions.
2 changes: 1 addition & 1 deletion .go-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.20.6
1.20.7
2 changes: 1 addition & 1 deletion build/build-image/cross/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.26.0-go1.20.6-bullseye.0
v1.26.0-go1.20.7-bullseye.0
2 changes: 1 addition & 1 deletion build/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,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.1.2
readonly __default_go_runner_version=v2.3.1-go1.20.6-bullseye.0
readonly __default_go_runner_version=v2.3.1-go1.20.7-bullseye.0
readonly __default_setcap_version=bullseye-v1.3.0

# These are the base images for the Docker-wrapped binaries.
Expand Down
6 changes: 3 additions & 3 deletions build/dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ dependencies:

# Golang
- name: "golang: upstream version"
version: 1.20.6
version: 1.20.7
refPaths:
- path: .go-version
- path: build/build-image/cross/VERSION
Expand All @@ -112,7 +112,7 @@ dependencies:
# match: minimum_go_version=go([0-9]+\.[0-9]+)

- name: "registry.k8s.io/kube-cross: dependents"
version: v1.26.0-go1.20.6-bullseye.0
version: v1.26.0-go1.20.7-bullseye.0
refPaths:
- path: build/build-image/cross/VERSION

Expand Down Expand Up @@ -142,7 +142,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.6-bullseye.0
version: v2.3.1-go1.20.7-bullseye.0
refPaths:
- path: build/common.sh
match: __default_go_runner_version=
Expand Down
7 changes: 4 additions & 3 deletions hack/lib/protoc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ set -o pipefail
KUBE_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd -P)"
source "${KUBE_ROOT}/hack/lib/init.sh"


# Generates $1/api.pb.go from the protobuf file $1/api.proto
# and formats it correctly
# $1: Full path to the directory where the api.proto file is
Expand All @@ -36,11 +37,11 @@ function kube::protoc::generate_proto() {
kube::protoc::format "${package}"
}

# Checks that the current protoc version is at least version 3.0.0-beta1
# Checks that the current protoc version matches the required version and
# exit 1 if it's not the case
function kube::protoc::check_protoc() {
if [[ -z "$(which protoc)" || "$(protoc --version)" != "libprotoc 3."* ]]; then
echo "Generating protobuf requires protoc 3.0.0-beta1 or newer. Please download and"
if [[ -z "$(which protoc)" || "$(protoc --version)" != "libprotoc 23.4"* ]]; then
echo "Generating protobuf requires protoc 23.4 or newer. Please download and"
echo "install the platform appropriate Protobuf package for your OS: "
echo
echo " https://github.com/protocolbuffers/protobuf/releases"
Expand Down
16 changes: 8 additions & 8 deletions hack/update-generated-protobuf-dockerized.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ kube::golang::setup_env
GO111MODULE=on GOPROXY=off go install k8s.io/code-generator/cmd/go-to-protobuf
GO111MODULE=on GOPROXY=off go install k8s.io/code-generator/cmd/go-to-protobuf/protoc-gen-gogo

if [[ -z "$(which protoc)" || "$(protoc --version)" != "libprotoc 3."* ]]; then
echo "Generating protobuf requires protoc 3.0.0-beta1 or newer. Please download and"
echo "install the platform appropriate Protobuf package for your OS: "
echo
echo " https://github.com/protocolbuffers/protobuf/releases"
echo
echo "WARNING: Protobuf changes are not being validated"
exit 1
if [[ -z "$(which protoc)" || "$(protoc --version)" != "libprotoc 23.4"* ]]; then
echo "Generating protobuf requires protoc 23.4 or newer. Please download and"
echo "install the platform appropriate Protobuf package for your OS: "
echo
echo " https://github.com/protocolbuffers/protobuf/releases"
echo
echo "WARNING: Protobuf changes are not being validated"
exit 1
fi

gotoprotobuf=$(kube::util::find-binary "go-to-protobuf")
Expand Down
16 changes: 8 additions & 8 deletions hack/update-generated-runtime-dockerized.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ kube::golang::setup_env

GO111MODULE=on GOPROXY=off go install k8s.io/code-generator/cmd/go-to-protobuf/protoc-gen-gogo

if [[ -z "$(which protoc)" || "$(protoc --version)" != "libprotoc 3."* ]]; then
echo "Generating protobuf requires protoc 3.0.0-beta1 or newer. Please download and"
echo "install the platform appropriate Protobuf package for your OS: "
echo
echo " https://github.com/protocolbuffers/protobuf/releases"
echo
echo "WARNING: Protobuf changes are not being validated"
exit 1
if [[ -z "$(which protoc)" || "$(protoc --version)" != "libprotoc 23.4"* ]]; then
echo "Generating protobuf requires protoc 23.4 or newer. Please download and"
echo "install the platform appropriate Protobuf package for your OS: "
echo
echo " https://github.com/protocolbuffers/protobuf/releases"
echo
echo "WARNING: Protobuf changes are not being validated"
exit 1
fi

function cleanup {
Expand Down
60 changes: 30 additions & 30 deletions staging/publishing/rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ rules:
branch: release-1.25
dir: staging/src/k8s.io/code-generator
- name: release-1.26
go: 1.20.6
go: 1.20.7
source:
branch: release-1.26
dir: staging/src/k8s.io/code-generator
Expand Down Expand Up @@ -57,7 +57,7 @@ rules:
branch: release-1.25
dir: staging/src/k8s.io/apimachinery
- name: release-1.26
go: 1.20.6
go: 1.20.7
source:
branch: release-1.26
dir: staging/src/k8s.io/apimachinery
Expand Down Expand Up @@ -104,7 +104,7 @@ rules:
branch: release-1.25
dir: staging/src/k8s.io/api
- name: release-1.26
go: 1.20.6
go: 1.20.7
dependencies:
- repository: apimachinery
branch: release-1.26
Expand Down Expand Up @@ -184,7 +184,7 @@ rules:
go build -mod=mod ./...
go test -mod=mod ./...
- name: release-1.26
go: 1.20.6
go: 1.20.7
dependencies:
- repository: apimachinery
branch: release-1.26
Expand Down Expand Up @@ -260,7 +260,7 @@ rules:
branch: release-1.25
dir: staging/src/k8s.io/component-base
- name: release-1.26
go: 1.20.6
go: 1.20.7
dependencies:
- repository: apimachinery
branch: release-1.26
Expand Down Expand Up @@ -334,7 +334,7 @@ rules:
branch: release-1.25
dir: staging/src/k8s.io/component-helpers
- name: release-1.26
go: 1.20.6
go: 1.20.7
dependencies:
- repository: apimachinery
branch: release-1.26
Expand All @@ -354,7 +354,7 @@ rules:
branch: master
dir: staging/src/k8s.io/kms
- name: release-1.26
go: 1.20.6
go: 1.20.7
source:
branch: release-1.26
dir: staging/src/k8s.io/kms
Expand Down Expand Up @@ -432,7 +432,7 @@ rules:
branch: release-1.25
dir: staging/src/k8s.io/apiserver
- name: release-1.26
go: 1.20.6
go: 1.20.7
dependencies:
- repository: apimachinery
branch: release-1.26
Expand Down Expand Up @@ -542,7 +542,7 @@ rules:
branch: release-1.25
dir: staging/src/k8s.io/kube-aggregator
- name: release-1.26
go: 1.20.6
go: 1.20.7
dependencies:
- repository: apimachinery
branch: release-1.26
Expand Down Expand Up @@ -680,7 +680,7 @@ rules:
# assumes GO111MODULE=on
go build -mod=mod .
- name: release-1.26
go: 1.20.6
go: 1.20.7
dependencies:
- repository: apimachinery
branch: release-1.26
Expand Down Expand Up @@ -801,7 +801,7 @@ rules:
# assumes GO111MODULE=on
go build -mod=mod .
- name: release-1.26
go: 1.20.6
go: 1.20.7
dependencies:
- repository: apimachinery
branch: release-1.26
Expand Down Expand Up @@ -923,7 +923,7 @@ rules:
required-packages:
- k8s.io/code-generator
- name: release-1.26
go: 1.20.6
go: 1.20.7
dependencies:
- repository: apimachinery
branch: release-1.26
Expand Down Expand Up @@ -1016,7 +1016,7 @@ rules:
branch: release-1.25
dir: staging/src/k8s.io/metrics
- name: release-1.26
go: 1.20.6
go: 1.20.7
dependencies:
- repository: apimachinery
branch: release-1.26
Expand Down Expand Up @@ -1092,7 +1092,7 @@ rules:
branch: release-1.25
dir: staging/src/k8s.io/cli-runtime
- name: release-1.26
go: 1.20.6
go: 1.20.7
dependencies:
- repository: api
branch: release-1.26
Expand Down Expand Up @@ -1176,7 +1176,7 @@ rules:
branch: release-1.25
dir: staging/src/k8s.io/sample-cli-plugin
- name: release-1.26
go: 1.20.6
go: 1.20.7
dependencies:
- repository: api
branch: release-1.26
Expand Down Expand Up @@ -1261,7 +1261,7 @@ rules:
branch: release-1.25
dir: staging/src/k8s.io/kube-proxy
- name: release-1.26
go: 1.20.6
go: 1.20.7
dependencies:
- repository: apimachinery
branch: release-1.26
Expand Down Expand Up @@ -1347,7 +1347,7 @@ rules:
branch: release-1.25
dir: staging/src/k8s.io/kubelet
- name: release-1.26
go: 1.20.6
go: 1.20.7
dependencies:
- repository: apimachinery
branch: release-1.26
Expand Down Expand Up @@ -1433,7 +1433,7 @@ rules:
branch: release-1.25
dir: staging/src/k8s.io/kube-scheduler
- name: release-1.26
go: 1.20.6
go: 1.20.7
dependencies:
- repository: apimachinery
branch: release-1.26
Expand Down Expand Up @@ -1531,7 +1531,7 @@ rules:
branch: release-1.25
dir: staging/src/k8s.io/controller-manager
- name: release-1.26
go: 1.20.6
go: 1.20.7
dependencies:
- repository: api
branch: release-1.26
Expand Down Expand Up @@ -1653,7 +1653,7 @@ rules:
branch: release-1.25
dir: staging/src/k8s.io/cloud-provider
- name: release-1.26
go: 1.20.6
go: 1.20.7
dependencies:
- repository: api
branch: release-1.26
Expand Down Expand Up @@ -1789,7 +1789,7 @@ rules:
branch: release-1.25
dir: staging/src/k8s.io/kube-controller-manager
- name: release-1.26
go: 1.20.6
go: 1.20.7
dependencies:
- repository: apimachinery
branch: release-1.26
Expand Down Expand Up @@ -1865,7 +1865,7 @@ rules:
branch: release-1.25
dir: staging/src/k8s.io/cluster-bootstrap
- name: release-1.26
go: 1.20.6
go: 1.20.7
dependencies:
- repository: apimachinery
branch: release-1.26
Expand Down Expand Up @@ -1927,7 +1927,7 @@ rules:
branch: release-1.25
dir: staging/src/k8s.io/csi-translation-lib
- name: release-1.26
go: 1.20.6
go: 1.20.7
dependencies:
- repository: api
branch: release-1.26
Expand Down Expand Up @@ -1964,7 +1964,7 @@ rules:
branch: release-1.25
dir: staging/src/k8s.io/mount-utils
- name: release-1.26
go: 1.20.6
go: 1.20.7
source:
branch: release-1.26
dir: staging/src/k8s.io/mount-utils
Expand Down Expand Up @@ -2101,7 +2101,7 @@ rules:
branch: release-1.25
dir: staging/src/k8s.io/legacy-cloud-providers
- name: release-1.26
go: 1.20.6
go: 1.20.7
dependencies:
- repository: api
branch: release-1.26
Expand Down Expand Up @@ -2156,7 +2156,7 @@ rules:
branch: release-1.25
dir: staging/src/k8s.io/cri-api
- name: release-1.26
go: 1.20.6
go: 1.20.7
source:
branch: release-1.26
dir: staging/src/k8s.io/cri-api
Expand Down Expand Up @@ -2273,7 +2273,7 @@ rules:
branch: release-1.25
dir: staging/src/k8s.io/kubectl
- name: release-1.26
go: 1.20.6
go: 1.20.7
dependencies:
- repository: api
branch: release-1.26
Expand Down Expand Up @@ -2379,7 +2379,7 @@ rules:
branch: release-1.25
dir: staging/src/k8s.io/pod-security-admission
- name: release-1.26
go: 1.20.6
go: 1.20.7
dependencies:
- repository: api
branch: release-1.26
Expand Down Expand Up @@ -2415,7 +2415,7 @@ rules:
branch: master
dir: staging/src/k8s.io/dynamic-resource-allocation
- name: release-1.26
go: 1.20.6
go: 1.20.7
dependencies:
- repository: apimachinery
branch: release-1.26
Expand All @@ -2432,4 +2432,4 @@ rules:
dir: staging/src/k8s.io/dynamic-resource-allocation
recursive-delete-patterns:
- '*/.gitattributes'
default-go-version: 1.20.6
default-go-version: 1.20.7
2 changes: 1 addition & 1 deletion test/images/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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.6
GOLANG_VERSION=1.20.7
export

ifndef WHAT
Expand Down

0 comments on commit 1171161

Please sign in to comment.