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 Kubernetes dependencies from `1.25` to `1.26`.
* Upgrade `sigs.k8s.io/controller-tools` from `v0.10.0` to `v0.11.3`. More info: https://github.com/kubernetes-sigs/controller-tools/releases
* Upgrade `sigs.k8s.io/controller-runtime` dependency from `v0.13.0` to `v0.14.5`. More info: https://github.com/kubernetes-sigs/controller-runtime/releases
* Upgrade `k8s.io/client-go` dependency from `v0.25.3` to `v0.26.2`.
* Upgrade `controller-gen` dependency from `v0.10.0` to `v0.11.1`.
* Upgrade `kube-rbac-proxy` from `v0.13.0` to `v0.13.1`
* Modify gov4alpha plugin to use `go/v4-alpha` from Kubebuilder
Signed-off-by: rashmigottipati <chowdary.grashmi@gmail.com>
- Upgrade Kubernetes dependencies from `1.25` to `1.26`.
6
+
- Upgrade `sigs.k8s.io/controller-tools` from `v0.10.0` to `v0.11.3`. More info: https://github.com/kubernetes-sigs/controller-tools/releases
7
+
- Upgrade `sigs.k8s.io/controller-runtime` dependency from `v0.13.0` to `v0.14.5`. More info: https://github.com/kubernetes-sigs/controller-runtime/releases
8
+
- Upgrade `k8s.io/client-go` dependency from `v0.25.3` to `v0.26.2`.
9
+
- Upgrade `controller-gen` dependency from `v0.10.0` to `v0.11.1`.
10
+
- Upgrade `kube-rbac-proxy` from `v0.13.0` to `v0.13.1`
11
+
- Modify gov4alpha plugin to use `go/v4-alpha` from Kubebuilder
12
+
13
+
# kind is one of:
14
+
# - addition
15
+
# - change
16
+
# - deprecation
17
+
# - removal
18
+
# - bugfix
19
+
kind: "change"
20
+
21
+
# Is this a breaking change?
22
+
breaking: false
23
+
24
+
# NOTE: ONLY USE `pull_request_override` WHEN ADDING THIS
25
+
# FILE FOR A PREVIOUSLY MERGED PULL_REQUEST!
26
+
#
27
+
# The generator auto-detects the PR number from the commit
28
+
# message in which this file was originally added.
29
+
#
30
+
# What is the pull request number (without the "#")?
31
+
# pull_request_override: 0
32
+
33
+
# Migration can be defined to automatically add a section to
34
+
# the migration guide. This is required for breaking changes.
35
+
migration:
36
+
header: Upgrade K8s versions to use 1.26
37
+
body: >
38
+
Regarding the upcoming major changes in the plugin, please note that `go/v3` is being deprecated by Kubebuilder hence Operator SDK would also be migrating to `go/v4` soon.
39
+
Following are the changes to be addressed in your project structure, `Makefile` and `go.mod` files:
40
+
1) [go/v3, ansible/v1, helm/v1] Update your `go.mod` file to upgrade the dependencies and run `go mod tidy` to download them
41
+
```go
42
+
k8s.io/api v0.26.2
43
+
k8s.io/apiextensions-apiserver v0.26.2
44
+
k8s.io/apimachinery v0.26.2
45
+
k8s.io/cli-runtime v0.26.2
46
+
k8s.io/client-go v0.26.2
47
+
k8s.io/kubectl v0.26.2
48
+
sigs.k8s.io/controller-runtime v0.14.5
49
+
sigs.k8s.io/controller-tools v0.11.3
50
+
sigs.k8s.io/kubebuilder/v3 v3.9.1
51
+
```
52
+
2) [go/v3, ansible/v1, helm/v1] With the bump to Kubebuilder 3.9.1, the `go/v3` projects are now scaffolded with 0.13.1 version of kube-rbac-proxy. Modify the version of kube-rbac-proxy in the following scaffolded files:
3) [gov4alpha] For scaffolds, replace scaffoldings of v1beta1 by using `k8s.io/api/admission/v1` instead of `k8s.io/api/admission/v1beta1` as v1beta1 is removed in latest k8s.
61
+
```diff
62
+
- admissionv1beta1 "k8s.io/api/admission/v1beta1"
63
+
+ admissionv1 "k8s.io/api/admission/v1"
64
+
```
65
+
4) [gov4alpha] The project structure has changed from `/controllers` to `internal/controller/`. Modify the Dockerfile of the `go/v4-alpha` plugin to below:
66
+
```diff
67
+
- COPY controllers/ controllers/
68
+
+ COPY internal/controller/ internal/controller/
69
+
```
70
+
5) [go/v3, gov4alpha] Update your Makefile by
71
+
- Replacing `ENVTEST_K8S_VERSION = 1.25` with `ENVTEST_K8S_VERSION = 1.26`.
72
+
- Using `manifests generate fmt vet` to build manager binary by replacing `generate fmt vet` in the build target to `manifests generate fmt vet`:
73
+
```diff
74
+
- build: generate fmt vet ## Build manager binary.
75
+
+ build: manifests generate fmt vet ## Build manager binary.
76
+
```
77
+
6) [gov4alpha] The gov4alpha plugin is now being scaffolded with Kubebuilder's go/v4-alpha which has a modified project file structure according to Go's best practices. Refer https://github.com/kubernetes-sigs/kubebuilder/pull/2985 for changes. Make the following changes in your scaffolded project if gov4aplha plugin was used: - Replacing `go run ./main.go` to `go run ./cmd/main.go` due to the change in project structure.
78
+
- Replacing
79
+
```diff
80
+
- `test -s $(LOCALBIN)/controller-gen || GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-tools/cmd/controller-gen@$(CONTROLLER_TOOLS_VERSION)`
0 commit comments