You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Upgrade the Kubernetes dependencies from `1.21` to `1.22`.
6
+
- Upgrade the controller-gen dependency from `v0.6.2` to `v0.7.0`. More info: https://github.com/kubernetes-sigs/controller-tools/releases
7
+
- Upgrade the sigs.k8s.io/controller-runtime dependency from `v0.9.2` to `v0.10.0`. More info: https://github.com/kubernetes-sigs/controller-runtime/releases
8
+
- Upgrade the Env Test used from `1.21` to `1.22`.
9
+
10
+
# kind is one of:
11
+
# - addition
12
+
# - change
13
+
# - deprecation
14
+
# - removal
15
+
# - bugfix
16
+
kind: "change"
17
+
18
+
# Is this a breaking change?
19
+
breaking: false
20
+
21
+
# NOTE: ONLY USE `pull_request_override` WHEN ADDING THIS
22
+
# FILE FOR A PREVIOUSLY MERGED PULL_REQUEST!
23
+
#
24
+
# The generator auto-detects the PR number from the commit
25
+
# message in which this file was originally added.
26
+
#
27
+
# What is the pull request number (without the "#")?
28
+
# pull_request_override: 0
29
+
30
+
31
+
# Migration can be defined to automatically add a section to
32
+
# the migration guide. This is required for breaking changes.
33
+
migration:
34
+
header: Upgrade K8s versions to use 1.22 (golang/v3)
35
+
body: >
36
+
Note that to ensure the backwards compatibility SDK tool will try to downgrade the versions used if you need to still scaffold the v1beta1 for CRDs and Webhooks to publish your solutions into older cluster versions.
37
+
However, note that this version is no longer supported on Kubernetes 1.22+, and for sigs.k8s.io/controller-runtime v0.10.0 or controller-gen v0.7.0.
38
+
39
+
Following are the changes to be addressed in your `Makefile` and `go.mod` file if you are
40
+
not using the `v1beta1` K8s APIs which are no longer supported from k8s `1.22` version.
41
+
42
+
1) Update your `go.mod` file to upgrade the dependencies and run `go mod tidy` to download then
43
+
44
+
```go
45
+
k8s.io/api v0.22.1
46
+
k8s.io/apimachinery v0.22.1
47
+
k8s.io/client-go v0.22.1
48
+
sigs.k8s.io/controller-runtime v0.10.0
49
+
```
50
+
51
+
2) Update your Makefile by
52
+
- Replacing `ENVTEST_K8S_VERSION = 1.21` with `ENVTEST_K8S_VERSION = 1.22`
0 commit comments