Skip to content

Commit 34e6861

Browse files
Electronic-Wastegarymm
authored andcommitted
Upgrade Kubernetes to v1.30.7 (kubeflow#2463)
* chore: update go.mod & go mod tidy. Signed-off-by: Electronic-Waste <[email protected]> * chore: replace source.Kind and EnqueueRequestForXxx with typed func call. Signed-off-by: Electronic-Waste <[email protected]> * chore: update admission.Decoder in webhook. Signed-off-by: Electronic-Waste <[email protected]> * chore: update Makefile. Signed-off-by: Electronic-Waste <[email protected]> * fix: update codegen script. Signed-off-by: Electronic-Waste <[email protected]> * chore: execute update-codegen.sh. Signed-off-by: Electronic-Waste <[email protected]> * chore: update openapigen & generate new openapi definitions. Signed-off-by: Electronic-Waste <[email protected]> * fix: fix typo error. Signed-off-by: Electronic-Waste <[email protected]> * chore: update k8s version in CI. Signed-off-by: Electronic-Waste <[email protected]> * test(codegen): output CODEGEN_PKG. Signed-off-by: Electronic-Waste <[email protected]> * fix(codegen): move shell check annotation. Signed-off-by: Electronic-Waste <[email protected]> * fix(ci): change k8s version in go test to 1.30.0. Signed-off-by: Electronic-Waste <[email protected]> * fix: remove toolchain declaration in go.mod Signed-off-by: Electronic-Waste <[email protected]> * fix: remove codegen dependency in openapigen.sh. Signed-off-by: Electronic-Waste <[email protected]> * fix: fix bugs in recursive dir detection. Signed-off-by: Electronic-Waste <[email protected]> * fix: remove a blank line. Signed-off-by: Electronic-Waste <[email protected]> * fix: remove klog/v2 Signed-off-by: Electronic-Waste <[email protected]> * chore(codegen): add three dots in the comment. Signed-off-by: Electronic-Waste <[email protected]> * fix(codegen): fix package dependency on k8s.io/code-generator. Signed-off-by: Electronic-Waste <[email protected]> * chore(Makefile): add go-mod-download. Signed-off-by: Electronic-Waste <[email protected]> --------- Signed-off-by: Electronic-Waste <[email protected]> Signed-off-by: Gary Miguel <[email protected]>
1 parent d579d0a commit 34e6861

Some content is hidden

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

56 files changed

+387
-1466
lines changed

.github/workflows/e2e-test-darts-cifar10.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ jobs:
3333
strategy:
3434
fail-fast: false
3535
matrix:
36-
kubernetes-version: ["v1.27.11", "v1.28.7", "v1.29.2"]
36+
kubernetes-version: ["v1.28.7", "v1.29.2", "v1.30.7"]
3737
# Comma Delimited
3838
experiments: ["darts-cpu"]

.github/workflows/e2e-test-enas-cifar10.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ jobs:
3333
strategy:
3434
fail-fast: false
3535
matrix:
36-
kubernetes-version: ["v1.27.11", "v1.28.7", "v1.29.2"]
36+
kubernetes-version: ["v1.28.7", "v1.29.2", "v1.30.7"]
3737
# Comma Delimited
3838
experiments: ["enas-cpu"]

.github/workflows/e2e-test-pytorch-mnist.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
strategy:
3535
fail-fast: false
3636
matrix:
37-
kubernetes-version: ["v1.27.11", "v1.28.7", "v1.29.2"]
37+
kubernetes-version: ["v1.28.7", "v1.29.2", "v1.30.7"]
3838
# Comma Delimited
3939
experiments:
4040
# suggestion-hyperopt

.github/workflows/e2e-test-simple-pbt.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ jobs:
3333
fail-fast: false
3434
matrix:
3535
# Detail: https://hub.docker.com/r/kindest/node
36-
kubernetes-version: ["v1.27.11", "v1.28.7", "v1.29.2"]
36+
kubernetes-version: ["v1.28.7", "v1.29.2", "v1.30.7"]
3737
# Comma Delimited
3838
experiments: ["simple-pbt"]

.github/workflows/e2e-test-tf-mnist-with-summaries.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ jobs:
3333
strategy:
3434
fail-fast: false
3535
matrix:
36-
kubernetes-version: ["v1.27.11", "v1.28.7", "v1.29.2"]
36+
kubernetes-version: ["v1.28.7", "v1.29.2", "v1.30.7"]
3737
# Comma Delimited
3838
experiments: ["tfjob-mnist-with-summaries"]

.github/workflows/e2e-test-tune-api.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ jobs:
3131
fail-fast: false
3232
matrix:
3333
# Detail: https://hub.docker.com/r/kindest/node
34-
kubernetes-version: ["v1.27.11", "v1.28.7", "v1.29.2"]
34+
kubernetes-version: ["v1.28.7", "v1.29.2", "v1.30.7"]

.github/workflows/e2e-test-ui-random-search-postgres.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ jobs:
3232
strategy:
3333
fail-fast: false
3434
matrix:
35-
kubernetes-version: ["v1.27.11", "v1.28.7", "v1.29.2"]
35+
kubernetes-version: ["v1.28.7", "v1.29.2", "v1.30.7"]

.github/workflows/test-go.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
fail-fast: false
6868
matrix:
6969
# Detail: `setup-envtest list`
70-
kubernetes-version: ["1.27.1", "1.28.3", "1.29.3"]
70+
kubernetes-version: ["1.28.3", "1.29.3", "1.30.0"]
7171

7272
# notifies that all test jobs are finished.
7373
finish:

Makefile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ HAS_MOCKGEN := $(shell command -v mockgen;)
77
COMMIT := v1beta1-$(shell git rev-parse --short=7 HEAD)
88
KATIB_REGISTRY := docker.io/kubeflowkatib
99
CPU_ARCH ?= linux/amd64,linux/arm64
10-
ENVTEST_K8S_VERSION ?= 1.29
10+
ENVTEST_K8S_VERSION ?= 1.30
1111
MOCKGEN_VERSION ?= $(shell grep 'go.uber.org/mock' go.mod | cut -d ' ' -f 2)
1212
GO_VERSION=$(shell grep '^go' go.mod | cut -d ' ' -f 2)
1313
GOPATH ?= $(shell go env GOPATH)
@@ -21,7 +21,7 @@ test: envtest
2121

2222
envtest:
2323
ifndef HAS_SETUP_ENVTEST
24-
go install sigs.k8s.io/controller-runtime/tools/setup-envtest@bf15e44028f908c790721fc8fe67c7bf2d06a611 #v0.17.3
24+
go install sigs.k8s.io/controller-runtime/tools/setup-envtest@release-0.18
2525
$(info "setup-envtest has been installed")
2626
endif
2727
$(info "setup-envtest has already installed")
@@ -79,18 +79,22 @@ endif
7979
sync-go-mod:
8080
go mod tidy -go $(GO_VERSION)
8181

82+
.PHONY: go-mod-download
83+
go-mod-download:
84+
go mod download
85+
8286
CONTROLLER_GEN = $(shell pwd)/bin/controller-gen
8387
.PHONY: controller-gen
8488
controller-gen:
85-
@GOBIN=$(shell pwd)/bin GO111MODULE=on go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.14.0
89+
@GOBIN=$(shell pwd)/bin GO111MODULE=on go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.16.5
8690

8791
# Run this if you update any existing controller APIs.
8892
# 1. Generate deepcopy, clientset, listers, informers for the APIs (hack/update-codegen.sh)
8993
# 2. Generate open-api for the APIs (hack/update-openapigen)
9094
# 3. Generate Python SDK for Katib (hack/gen-python-sdk/gen-sdk.sh)
9195
# 4. Generate gRPC manager APIs (pkg/apis/manager/v1beta1/build.sh and pkg/apis/manager/health/build.sh)
9296
# 5. Generate Go mock codes
93-
generate: controller-gen
97+
generate: go-mod-download controller-gen
9498
ifndef HAS_MOCKGEN
9599
go install go.uber.org/mock/mockgen@$(MOCKGEN_VERSION)
96100
$(info "mockgen has been installed")

examples/v1beta1/kind-cluster/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Install the following tools to run the example:
1010

1111
- [Docker](https://docs.docker.com/get-docker) >= 20.10
1212
- [Kind](https://kind.sigs.k8s.io/docs/user/quick-start/#installation) >= 0.13
13-
- [`kubectl`](https://kubernetes.io/docs/tasks/tools/#kubectl) >= 1.27
13+
- [`kubectl`](https://kubernetes.io/docs/tasks/tools/#kubectl) >= 1.28
1414

1515
## Installation
1616

0 commit comments

Comments
 (0)