|
| 1 | +# entries is a list of entries to include in |
| 2 | +# release notes and/or the migration guide |
| 3 | +entries: |
| 4 | + - description: > |
| 5 | + (go/v3) upgrade go version from 1.16 to 1.17 and the following dependencies: |
| 6 | + - upgrade controller-runtime from `0.10.0` to `0.11.0` |
| 7 | + - k8s from `1.22` to `1.23` |
| 8 | + - controller-gen from `v0.0.7` to `v0.8.0` |
| 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: (go/v3) Upgrade go and dependencies |
| 35 | + body: | |
| 36 | + Upgrade controller-runtime from `0.10.0` to `0.11.0`, k8s from `1.22` to `1.23` and controller-gen from `v0.0.7` to `v0.8.0`. |
| 37 | + Following the steps to update your project. |
| 38 | + 1) Update the go.mod file with: |
| 39 | +
|
| 40 | + ``` |
| 41 | + go 1.17 |
| 42 | +
|
| 43 | + require ( |
| 44 | + github.com/onsi/ginkgo v1.16.5 |
| 45 | + github.com/onsi/gomega v1.17.0 |
| 46 | + k8s.io/api v0.23.0 |
| 47 | + k8s.io/apimachinery v0.23.0 |
| 48 | + k8s.io/client-go v0.23.0 |
| 49 | + sigs.k8s.io/controller-runtime v0.11.0 |
| 50 | + ) |
| 51 | + ``` |
| 52 | + 2) Run `go mod tidy` |
| 53 | +
|
| 54 | + Now, let's update the Makefile targets accordingly: |
| 55 | +
|
| 56 | + 1) Replace `ENVTEST_K8S_VERSION = 1.22` with `ENVTEST_K8S_VERSION = 1.23` |
| 57 | + 2) Replace `sigs.k8s.io/controller-tools/cmd/controller-gen@v0.7.0` with `sigs.k8s.io/controller-tools/cmd/controller-gen@v0.8.0` |
| 58 | + 3) Run `make manifests` and `make generate` to ensure that you will update your manifests with the new versions |
| 59 | + 4) You might want to run `make all` to ensure that all updates were done accordinly and succeffully |
| 60 | + - description: > |
| 61 | + The debug log level for the sidecar container kube-rbac-proxy was reduced from 10 to 0 |
| 62 | + kind: "change" |
| 63 | + # Is this a breaking change? |
| 64 | + breaking: false |
| 65 | + # Migration can be defined to automatically add a section to |
| 66 | + # the migration guide. This is required for breaking changes. |
| 67 | + migration: |
| 68 | + header: Reduce debug log level for the sidecar container kube-rbac-proxy from 10 to 0 |
| 69 | + body: | |
| 70 | + Update the file `config/default/manager_auth_proxy_patch.yaml` by replacing `"--v=10"` with `"--v=0"` |
| 71 | + - description: > |
| 72 | + Add resource requests and limits to kube-rbac-proxy |
| 73 | + kind: "addition" |
| 74 | + # Is this a breaking change? |
| 75 | + breaking: false |
| 76 | + # Migration can be defined to automatically add a section to |
| 77 | + # the migration guide. This is required for breaking changes. |
| 78 | + migration: |
| 79 | + header: Add resource requests and limits to kube-rbac-proxy |
| 80 | + body: | |
| 81 | + Update the file `config/default/manager_auth_proxy_patch.yaml` by adding: |
| 82 | +
|
| 83 | + ``` |
| 84 | + ... |
| 85 | + resources: |
| 86 | + limits: |
| 87 | + cpu: 500m |
| 88 | + memory: 128Mi |
| 89 | + requests: |
| 90 | + cpu: 5m |
| 91 | + memory: 64Mi |
| 92 | + ``` |
| 93 | +
|
| 94 | +
|
0 commit comments