Skip to content

Commit 3ce1d56

Browse files
✨ upgrade k8s from 1.25 to 1.26 (#3147)
1 parent e18e7cc commit 3ce1d56

File tree

117 files changed

+484
-611
lines changed

Some content is hidden

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

117 files changed

+484
-611
lines changed

build/.goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ builds:
4444
- darwin_amd64
4545
- darwin_arm64
4646
env:
47-
- KUBERNETES_VERSION=1.25.0
47+
- KUBERNETES_VERSION=1.26.0
4848
- CGO_ENABLED=0
4949

5050
# Only binaries of the form "kubebuilder_${goos}_${goarch}" will be released.

docs/book/src/component-config-tutorial/testdata/project/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Image URL to use all building/pushing image targets
33
IMG ?= controller:latest
44
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
5-
ENVTEST_K8S_VERSION = 1.25.0
5+
ENVTEST_K8S_VERSION = 1.26.0
66

77
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
88
ifeq (,$(shell go env GOBIN))

pkg/plugins/golang/declarative/v1/api.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ import (
3131

3232
const (
3333
// kbDeclarativePattern is the sigs.k8s.io/kubebuilder-declarative-pattern version
34-
kbDeclarativePatternForV2 = "v0.0.0-20200522144838-848d48e5b073"
35-
kbDeclarativePatternForV3 = "e0605f0e1a40f97293cb3773f57de695c8bc76af"
34+
kbDeclarativePatternForV2 = "v0.0.0-20200522144838-848d48e5b073"
35+
kbDeclarativePatternForV3V4 = "18dbaf5fcd851e6adc3f2f8a8facb669a1420797"
3636
)
3737

3838
var _ plugin.CreateAPISubcommand = &createAPISubcommand{}
@@ -125,7 +125,7 @@ func (p *createAPISubcommand) Scaffold(fs machinery.Filesystem) error {
125125
// Ensure that we are pinning sigs.k8s.io/kubebuilder-declarative-pattern version
126126
// Just pin an old value for go/v2. It shows fine for now. However, we should improve/change it
127127
// if we see that more rules based on the plugins version are required.
128-
kbDeclarativePattern := kbDeclarativePatternForV3
128+
kbDeclarativePattern := kbDeclarativePatternForV3V4
129129
for _, pluginKey := range p.config.GetPluginChain() {
130130
if pluginKey == plugin.KeyFor(goPluginV2.Plugin{}) {
131131
kbDeclarativePattern = kbDeclarativePatternForV2

pkg/plugins/golang/v3/commons.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ manifests: controller-gen`
7878
}
7979

8080
if err := util.ReplaceInFile("Makefile",
81-
"ENVTEST_K8S_VERSION = 1.25.0",
81+
"ENVTEST_K8S_VERSION = 1.26.0",
8282
"ENVTEST_K8S_VERSION = 1.21"); err != nil {
8383
log.Warnf("unable to update the Makefile with %s: %s", "ENVTEST_K8S_VERSION = 1.21", err)
8484
}

pkg/plugins/golang/v3/scaffolds/init.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ import (
3434

3535
const (
3636
// ControllerRuntimeVersion is the kubernetes-sigs/controller-runtime version to be used in the project
37-
ControllerRuntimeVersion = "v0.13.1"
37+
ControllerRuntimeVersion = "v0.14.1"
3838
// ControllerToolsVersion is the kubernetes-sigs/controller-tools version to be used in the project
39-
ControllerToolsVersion = "v0.10.0"
39+
ControllerToolsVersion = "v0.11.1"
4040

4141
imageName = "controller:latest"
4242
)

pkg/plugins/golang/v3/scaffolds/internal/templates/makefile.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const makefileTemplate = `
6262
# Image URL to use all building/pushing image targets
6363
IMG ?= {{ .Image }}
6464
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
65-
ENVTEST_K8S_VERSION = 1.25.0
65+
ENVTEST_K8S_VERSION = 1.26.0
6666
6767
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
6868
ifeq (,$(shell go env GOBIN))

pkg/plugins/golang/v4/scaffolds/init.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ import (
3434

3535
const (
3636
// ControllerRuntimeVersion is the kubernetes-sigs/controller-runtime version to be used in the project
37-
ControllerRuntimeVersion = "v0.13.1"
37+
ControllerRuntimeVersion = "v0.14.1"
3838
// ControllerToolsVersion is the kubernetes-sigs/controller-tools version to be used in the project
39-
ControllerToolsVersion = "v0.10.0"
39+
ControllerToolsVersion = "v0.11.1"
4040

4141
imageName = "controller:latest"
4242
)

pkg/plugins/golang/v4/scaffolds/internal/templates/makefile.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const makefileTemplate = `
6262
# Image URL to use all building/pushing image targets
6363
IMG ?= {{ .Image }}
6464
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
65-
ENVTEST_K8S_VERSION = 1.25.0
65+
ENVTEST_K8S_VERSION = 1.26.0
6666
6767
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
6868
ifeq (,$(shell go env GOBIN))

test/common.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ function convert_to_tools_ver {
2828
"1.23") echo "1.23.3";;
2929
"1.24") echo "1.24.1";;
3030
"1.25") echo "1.25.0";;
31+
"1.26") echo "1.26.0";;
3132
*)
3233
echo "k8s version $k8s_ver not supported"
3334
exit 1
@@ -47,7 +48,7 @@ if [ -n "$TRACE" ]; then
4748
set -x
4849
fi
4950

50-
export KIND_K8S_VERSION="${KIND_K8S_VERSION:-"v1.25.0"}"
51+
export KIND_K8S_VERSION="${KIND_K8S_VERSION:-"v1.26.0"}"
5152
tools_k8s_version=$(convert_to_tools_ver "${KIND_K8S_VERSION#v*}")
5253
kind_version=0.15.0
5354
goarch=amd64

testdata/project-v3-config/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Image URL to use all building/pushing image targets
33
IMG ?= controller:latest
44
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
5-
ENVTEST_K8S_VERSION = 1.25.0
5+
ENVTEST_K8S_VERSION = 1.26.0
66

77
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
88
ifeq (,$(shell go env GOBIN))
@@ -133,7 +133,7 @@ ENVTEST ?= $(LOCALBIN)/setup-envtest
133133

134134
## Tool Versions
135135
KUSTOMIZE_VERSION ?= v3.8.7
136-
CONTROLLER_TOOLS_VERSION ?= v0.10.0
136+
CONTROLLER_TOOLS_VERSION ?= v0.11.1
137137

138138
KUSTOMIZE_INSTALL_SCRIPT ?= "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh"
139139
.PHONY: kustomize

0 commit comments

Comments
 (0)