Skip to content

Commit 65b841c

Browse files
pohlythockin
authored andcommitted
Generate go.work files
This creates go.work and enables Go Workspaces. This is a file that includes info on k/k and all the staging modules. This depends on go 1.22 and setting FORCE_HOST_GO=true (for kube scripts, which try to be hermetic). Make this part of the normal update/verify sequence. The top-level go.work file contains no replace statements. Instead, the replace statements in the individual go.mod files are used. For this to work, replace statements in the individual go.mod files have to be consistent. hack/tools has different dependencies and can't be in the main workspace, so this adds a go.work just for that. Without this, go tries to consider all deps in all modules and pick one that works for all. This is problematic because there are so many of them that it is difficult to manage. Likewise for k8s.io/code-generator/examples and k8s.io/kms/internal/plugins/_mock - add trivial go.work files. For example k/k depends on an older version of a lib that gloangci-lint needs (transitively) and it breaks. This also updates vendor (needed to make go happy), and removes vendor'ed symlinks. This breaks a LOT of our build tools, which will be fixed subsequently. Result: `go` commands work across modules: Before: ``` $ go list ./pkg/proxy/iptables/ ./staging/src/k8s.io/api/core/v1/ main module (k8s.io/kubernetes) does not contain package k8s.io/kubernetes/staging/src/k8s.io/api/core/v1 $ go build ./pkg/proxy/iptables/ ./staging/src/k8s.io/api main module (k8s.io/kubernetes) does not contain package k8s.io/kubernetes/staging/src/k8s.io/api $ go test ./pkg/proxy/iptables/ ./staging/src/k8s.io/api main module (k8s.io/kubernetes) does not contain package k8s.io/kubernetes/staging/src/k8s.io/api ``` After: ``` $ go list ./pkg/proxy/iptables/ ./staging/src/k8s.io/api/core/v1/ k8s.io/kubernetes/pkg/proxy/iptables k8s.io/api/core/v1 $ go build ./pkg/proxy/iptables/ ./staging/src/k8s.io/api $ go test ./pkg/proxy/iptables/ ./staging/src/k8s.io/api ok k8s.io/kubernetes/pkg/proxy/iptables 0.360s ok k8s.io/api 2.302s ``` Result: `make` fails: ``` $ make go version go1.22rc1 linux/amd64 +++ [0106 12:11:03] Building go targets for linux/amd64 k8s.io/kubernetes/cmd/kube-proxy (static) k8s.io/kubernetes/cmd/kube-apiserver (static) k8s.io/kubernetes/cmd/kube-controller-manager (static) k8s.io/kubernetes/cmd/kubelet (non-static) k8s.io/kubernetes/cmd/kubeadm (static) k8s.io/kubernetes/cmd/kube-scheduler (static) k8s.io/component-base/logs/kube-log-runner (static) k8s.io/kube-aggregator (static) k8s.io/apiextensions-apiserver (static) k8s.io/kubernetes/cluster/gce/gci/mounter (static) k8s.io/kubernetes/cmd/kubectl (static) k8s.io/kubernetes/cmd/kubectl-convert (static) github.com/onsi/ginkgo/v2/ginkgo (non-static) k8s.io/kubernetes/test/e2e/e2e.test (test) k8s.io/kubernetes/test/conformance/image/go-runner (non-static) k8s.io/kubernetes/cmd/kubemark (static) github.com/onsi/ginkgo/v2/ginkgo (non-static) k8s.io/kubernetes/test/e2e_node/e2e_node.test (test) test/e2e/e2e.go:35:2: cannot find package "k8s.io/api/apps/v1" in any of: /home/thockin/src/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/api/apps/v1 (vendor tree) /home/thockin/src/kubernetes/_output/local/.gimme/versions/go1.22rc1.linux.amd64/src/k8s.io/api/apps/v1 (from $GOROOT) /home/thockin/src/kubernetes/_output/local/go/src/k8s.io/api/apps/v1 (from $GOPATH) ... more ... ... more ... ... more ... !!! [0106 12:13:41] Call tree: !!! [0106 12:13:41] 1: /home/thockin/src/kubernetes/hack/lib/golang.sh:948 kube::golang::build_binaries_for_platform(...) !!! [0106 12:13:41] 2: hack/make-rules/build.sh:27 kube::golang::build_binaries(...) !!! [0106 12:13:41] Call tree: !!! [0106 12:13:41] 1: hack/make-rules/build.sh:27 kube::golang::build_binaries(...) !!! [0106 12:13:41] Call tree: !!! [0106 12:13:41] 1: hack/make-rules/build.sh:27 kube::golang::build_binaries(...) make: *** [Makefile:96: all] Error 1 ``` Again, this requires go 1.22 (e.g. gotip), as go 1.21.x does not have `go work vendor` support. TO REPEAT: ( \ ./hack/update-go-workspace.sh; \ ./hack/update-vendor.sh; \ ./hack/update-go-workspace.sh; \ )
1 parent e54f229 commit 65b841c

File tree

107 files changed

+742
-1724
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+742
-1724
lines changed

.gitignore

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
# gopls gets indigestion without go.work, CI gets indigestion WITH go.work
2-
/go.work
3-
/go.work.sum
4-
51
# OSX leaves these everywhere on SMB shares
62
._*
73

go.work

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
go 1.22.0
2+
3+
use (
4+
.
5+
./staging/src/k8s.io/api
6+
./staging/src/k8s.io/apiextensions-apiserver
7+
./staging/src/k8s.io/apimachinery
8+
./staging/src/k8s.io/apiserver
9+
./staging/src/k8s.io/cli-runtime
10+
./staging/src/k8s.io/client-go
11+
./staging/src/k8s.io/cloud-provider
12+
./staging/src/k8s.io/cluster-bootstrap
13+
./staging/src/k8s.io/code-generator
14+
./staging/src/k8s.io/component-base
15+
./staging/src/k8s.io/component-helpers
16+
./staging/src/k8s.io/controller-manager
17+
./staging/src/k8s.io/cri-api
18+
./staging/src/k8s.io/csi-translation-lib
19+
./staging/src/k8s.io/dynamic-resource-allocation
20+
./staging/src/k8s.io/endpointslice
21+
./staging/src/k8s.io/kms
22+
./staging/src/k8s.io/kube-aggregator
23+
./staging/src/k8s.io/kube-controller-manager
24+
./staging/src/k8s.io/kube-proxy
25+
./staging/src/k8s.io/kube-scheduler
26+
./staging/src/k8s.io/kubectl
27+
./staging/src/k8s.io/kubelet
28+
./staging/src/k8s.io/legacy-cloud-providers
29+
./staging/src/k8s.io/metrics
30+
./staging/src/k8s.io/mount-utils
31+
./staging/src/k8s.io/pod-security-admission
32+
./staging/src/k8s.io/sample-apiserver
33+
./staging/src/k8s.io/sample-cli-plugin
34+
./staging/src/k8s.io/sample-controller
35+
)

go.work.sum

+248
Large diffs are not rendered by default.

hack/make-rules/update.sh

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ if ! ${ALL} ; then
3636
fi
3737

3838
BASH_TARGETS=(
39+
update-go-workspace
3940
update-codegen
4041
update-generated-api-compatibility-data
4142
update-generated-docs

hack/tools/go.work

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// This is a hack, but it prevents go from climbing further and trying to
2+
// reconcile the various deps across the "real" modules and this one.
3+
4+
go 1.22.0
5+
6+
use .

hack/tools/go.work.sum

+197
Large diffs are not rendered by default.

hack/update-go-workspace.sh

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
#!/usr/bin/env bash
2+
3+
# Copyright 2022 The Kubernetes Authors.
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
# This script generates go.work so that it includes all Go packages
18+
# in this repo, with a few exceptions.
19+
20+
set -o errexit
21+
set -o nounset
22+
set -o pipefail
23+
24+
# Go tools really don't like it if you have a symlink in `pwd`.
25+
cd "$(pwd -P)"
26+
27+
KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
28+
source "${KUBE_ROOT}/hack/lib/init.sh"
29+
30+
# This sets up the environment, like GOCACHE, which keeps the worktree cleaner.
31+
kube::golang::setup_env
32+
export GO111MODULE=on
33+
34+
cd "${KUBE_ROOT}"
35+
36+
# Avoid issues and remove the workspace files.
37+
rm -f go.work go.work.sum
38+
39+
# Generate the workspace.
40+
go work init
41+
go work edit -use .
42+
git ls-files -z ':(glob)./staging/src/k8s.io/*/go.mod' \
43+
| xargs -0 -n1 dirname -z \
44+
| xargs -0 -n1 go work edit -use
45+
go mod download # generate go.work.sum

hack/update-vendor.sh

+10-10
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ cd "$(pwd -P)"
2424
KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
2525
source "${KUBE_ROOT}/hack/lib/init.sh"
2626

27+
# Get all the default Go environment.
28+
kube::golang::setup_env
29+
kube::golang::verify_go_version
30+
2731
# Turn off workspaces until we are ready for them later
2832
export GOWORK=off
2933
# Explicitly opt into go modules, even though we're inside a GOPATH directory
@@ -39,7 +43,6 @@ if [[ "${GOPROXY:-}" == "off" ]]; then
3943
exit 1
4044
fi
4145

42-
kube::golang::verify_go_version
4346
kube::util::require-jq
4447

4548
TMP_DIR="${TMP_DIR:-$(mktemp -d /tmp/update-vendor.XXXX)}"
@@ -403,15 +406,12 @@ hack/update-internal-modules.sh
403406

404407

405408
# Phase 8: rebuild vendor directory
406-
kube::log::status "vendor: running 'go mod vendor'" >&11
407-
go mod vendor
408-
409-
# create a symlink in vendor directory pointing to the staging components.
410-
# This lets other packages and tools use the local staging components as if they were vendored.
411-
for repo in $(kube::util::list_staging_repos); do
412-
rm -fr "${KUBE_ROOT}/vendor/k8s.io/${repo}"
413-
ln -s "../../staging/src/k8s.io/${repo}" "${KUBE_ROOT}/vendor/k8s.io/${repo}"
414-
done
409+
(
410+
kube::log::status "vendor: running 'go work vendor'" >&11
411+
unset GOWORK
412+
unset GOFLAGS
413+
go work vendor
414+
)
415415

416416
kube::log::status "vendor: updating vendor/LICENSES" >&11
417417
hack/update-vendor-licenses.sh

hack/verify-go-workspace.sh

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/usr/bin/env bash
2+
3+
# Copyright 2021 The Kubernetes Authors.
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
# This script checks whether the OWNERS files need to be formatted or not by
18+
# `yamlfmt`. Run `hack/update-yamlfmt.sh` to actually format sources.
19+
#
20+
# Usage: `hack/verify-go-workspace.sh`.
21+
22+
23+
set -o errexit
24+
set -o nounset
25+
set -o pipefail
26+
27+
KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
28+
source "${KUBE_ROOT}/hack/lib/verify-generated.sh"
29+
30+
export GO111MODULE=on # TODO(thockin): remove this when init.sh stops disabling it
31+
kube::verify::generated "Go workspace files need to be updated" "Please run 'hack/update-go-workspace.sh'" hack/update-go-workspace.sh

staging/src/k8s.io/api/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
module k8s.io/api
44

5-
go 1.21
5+
go 1.22.0
66

77
require (
88
github.com/gogo/protobuf v1.3.2

staging/src/k8s.io/apiextensions-apiserver/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
module k8s.io/apiextensions-apiserver
44

5-
go 1.21
5+
go 1.22.0
66

77
require (
88
github.com/emicklei/go-restful/v3 v3.11.0

staging/src/k8s.io/apimachinery/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
module k8s.io/apimachinery
44

5-
go 1.21
5+
go 1.22.0
66

77
require (
88
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5

staging/src/k8s.io/apiserver/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
module k8s.io/apiserver
44

5-
go 1.21
5+
go 1.22.0
66

77
require (
88
github.com/coreos/go-oidc v2.2.1+incompatible

staging/src/k8s.io/cli-runtime/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
module k8s.io/cli-runtime
44

5-
go 1.21
5+
go 1.22.0
66

77
require (
88
github.com/evanphx/json-patch v4.12.0+incompatible

staging/src/k8s.io/client-go/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
module k8s.io/client-go
44

5-
go 1.21
5+
go 1.22.0
66

77
require (
88
github.com/evanphx/json-patch v4.12.0+incompatible

staging/src/k8s.io/cloud-provider/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
module k8s.io/cloud-provider
44

5-
go 1.21
5+
go 1.22.0
66

77
require (
88
github.com/google/go-cmp v0.6.0

staging/src/k8s.io/cluster-bootstrap/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
module k8s.io/cluster-bootstrap
44

5-
go 1.21
5+
go 1.22.0
66

77
require (
88
github.com/stretchr/testify v1.8.4

staging/src/k8s.io/code-generator/examples/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
module k8s.io/code-generator/examples
44

5-
go 1.21
5+
go 1.22.0
66

77
require (
88
k8s.io/api v0.0.0
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// This is a hack, but it prevents go from climbing further and trying to
2+
// reconcile the various deps across the "real" modules and this one.
3+
4+
go 1.22.0
5+
6+
use .
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
cloud.google.com/go/compute v1.20.1 h1:6aKEtlUiwEpJzM001l0yFkpXmUVXaN8W+fbkb2AZNbg=
2+
cloud.google.com/go/compute v1.20.1/go.mod h1:4tCnrn48xsqlwSAiLf1HXMQk8CONslYbdiEZc9FEIbM=
3+
cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY=
4+
cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA=
5+
github.com/NYTimes/gziphandler v0.0.0-20170623195520-56545f4a5d46 h1:lsxEuwrXEAokXB9qhlbKWPpo3KMLZQ5WB5WLQRW1uq0=
6+
github.com/NYTimes/gziphandler v0.0.0-20170623195520-56545f4a5d46/go.mod h1:3wb06e3pkSAbeQ52E9H9iFoQsEEwGN64994WTCIhntQ=
7+
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPdPJAN/hZIm0C4OItdklCFmMRWYpio=
8+
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs=
9+
github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a h1:idn718Q4B6AGu/h5Sxe66HYVdqdGu2l9Iebqhi/AEoA=
10+
github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY=
11+
github.com/creack/pty v1.1.9 h1:uDmaGzcdjhF4i/plgjmEsriH11Y0o7RKapEf/LDaM3w=
12+
github.com/fxamacker/cbor/v2 v2.6.0 h1:sU6J2usfADwWlYDAFhZBQ6TnLFBHxgesMrQfQgk1tWA=
13+
github.com/fxamacker/cbor/v2 v2.6.0/go.mod h1:pxXPTn3joSm21Gbwsv0w9OSA2y1HFR9qXEeXQVeNoDQ=
14+
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE=
15+
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
16+
github.com/google/btree v1.0.1 h1:gK4Kx5IaGY9CD5sPJ36FHiBJ6ZXl0kilRiiCj+jdYp4=
17+
github.com/google/btree v1.0.1/go.mod h1:xXMiIv4Fb/0kKde4SpL7qlzvu5cMJDRkFDxJfI9uaxA=
18+
github.com/gorilla/websocket v1.5.0 h1:PPwGk2jz7EePpoHN/+ClbZu8SPxiqlu12wZP/3sWmnc=
19+
github.com/gorilla/websocket v1.5.0/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
20+
github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7 h1:pdN6V1QBWetyv/0+wjACpqVH+eVULgEjkurDLq3goeM=
21+
github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA=
22+
github.com/imdario/mergo v0.3.6 h1:xTNEAn+kxVO7dTZGu0CegyqKZmoWFI0rF8UxjlB2d28=
23+
github.com/imdario/mergo v0.3.6/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA=
24+
github.com/kisielk/errcheck v1.5.0 h1:e8esj/e4R+SAOwFwN+n3zr0nYeCyeweozKfO23MvHzY=
25+
github.com/kisielk/gotool v1.0.0 h1:AV2c/EiW3KqPNT9ZKl07ehoAGi4C5/01Cfbblndcapg=
26+
github.com/kr/pty v1.1.1 h1:VkoXIwSboBpnk99O/KFauAEILuNHv5DVFKZMBN/gUgw=
27+
github.com/moby/spdystream v0.2.0 h1:cjW1zVyyoiM0T7b6UoySUFqzXMoqRckQtXwGPiBhOM8=
28+
github.com/moby/spdystream v0.2.0/go.mod h1:f7i0iNDQJ059oMTcWxx8MA/zKFIuD/lY+0GqbN2Wy8c=
29+
github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f h1:y5//uYreIhSUg3J1GEMiLbxo1LJaP8RfCpH6pymGZus=
30+
github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f/go.mod h1:ZdcZmHo+o7JKHSa8/e818NopupXU1YMK5fe1lsApnBw=
31+
github.com/peterbourgon/diskv v2.0.1+incompatible h1:UBdAOUP5p4RWqPBg048CAvpKN+vxiaj6gdUUzhl4XmI=
32+
github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU=
33+
github.com/stretchr/objx v0.5.0 h1:1zr/of2m5FGMsad5YfcqgdqdWrIhu+EBEJRhR1U7z/c=
34+
github.com/x448/float16 v0.8.4 h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM=
35+
github.com/x448/float16 v0.8.4/go.mod h1:14CWIYCyZA/cWjXOioeEpHeN/83MdbZDRQHoFcYsOfg=
36+
github.com/yuin/goldmark v1.2.1 h1:ruQGxdhGHe7FWOJPT0mKs5+pD2Xs1Bm/kdGlHO04FmM=
37+
golang.org/x/crypto v0.19.0 h1:ENy+Az/9Y1vSrlrvBSyna3PITt4tiZLf7sgCjZBX7Wo=
38+
golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU=
39+
golang.org/x/mod v0.15.0 h1:SernR4v+D55NyBH2QiEQrlBAnj1ECL6AGrA5+dPaMY8=
40+
golang.org/x/mod v0.15.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
41+
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9 h1:SQFwaSi55rU7vdNs9Yr0Z324VNlrF+0wMqRXT4St8ck=
42+
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 h1:H2TDz8ibqkAF6YGhCdN3jS9O0/s90v0rJh3X/OLHEUk=
43+
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8=
44+
k8s.io/gengo/v2 v2.0.0-20240228010128-51d4e06bde70 h1:NGrVE502P0s0/1hudf8zjgwki1X/TByhmAoILTarmzo=
45+
k8s.io/gengo/v2 v2.0.0-20240228010128-51d4e06bde70/go.mod h1:VH3AT8AaQOqiGjMF9p0/IM1Dj+82ZwjfxUP1IxaHE+8=

staging/src/k8s.io/code-generator/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
module k8s.io/code-generator
44

5-
go 1.21
5+
go 1.22.0
66

77
require (
88
github.com/gogo/protobuf v1.3.2

staging/src/k8s.io/component-base/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
module k8s.io/component-base
44

5-
go 1.21
5+
go 1.22.0
66

77
require (
88
github.com/blang/semver/v4 v4.0.0

staging/src/k8s.io/component-helpers/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
module k8s.io/component-helpers
44

5-
go 1.21
5+
go 1.22.0
66

77
require (
88
github.com/google/go-cmp v0.6.0

staging/src/k8s.io/controller-manager/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
module k8s.io/controller-manager
44

5-
go 1.21
5+
go 1.22.0
66

77
require (
88
github.com/spf13/pflag v1.0.5

staging/src/k8s.io/cri-api/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
module k8s.io/cri-api
44

5-
go 1.21
5+
go 1.22.0
66

77
require (
88
github.com/gogo/protobuf v1.3.2

staging/src/k8s.io/csi-translation-lib/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
module k8s.io/csi-translation-lib
44

5-
go 1.21
5+
go 1.22.0
66

77
require (
88
github.com/stretchr/testify v1.8.4

staging/src/k8s.io/dynamic-resource-allocation/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
module k8s.io/dynamic-resource-allocation
44

5-
go 1.21
5+
go 1.22.0
66

77
require (
88
github.com/go-logr/logr v1.4.1

staging/src/k8s.io/endpointslice/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
module k8s.io/endpointslice
44

5-
go 1.21
5+
go 1.22.0
66

77
require (
88
github.com/davecgh/go-spew v1.1.1

staging/src/k8s.io/kms/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
module k8s.io/kms
44

5-
go 1.21
5+
go 1.22.0
66

77
require (
88
github.com/gogo/protobuf v1.3.2

0 commit comments

Comments
 (0)