sigs.k8s.io/cluster-api@v1.7.1/docs/release/release-tasks.md (about) 1 # Release Tasks 2 3 This document details the responsibilities and tasks for each role in the release team. 4 5 **Notes**: 6 7 * The examples in this document are based on the v1.6 release cycle. 8 * This document focuses on tasks that are done for every release. One-time improvement tasks are out of scope. 9 * If a task is prefixed with `[Track]` it means it should be ensured that this task is done, but the folks with 10 the corresponding role are not responsible to do it themselves. 11 12 <!-- START doctoc generated TOC please keep comment here to allow auto update --> 13 <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --> 14 15 - [Release Lead](#release-lead) 16 - [Responsibilities](#responsibilities) 17 - [Tasks](#tasks) 18 - [Finalize release schedule and team](#finalize-release-schedule-and-team) 19 - [Add/remove release team members](#addremove-release-team-members) 20 - [Prepare main branch for development of the new release](#prepare-main-branch-for-development-of-the-new-release) 21 - [Create a new GitHub milestone for the next release](#create-a-new-github-milestone-for-the-next-release) 22 - [[Track] Remove previously deprecated code](#track-remove-previously-deprecated-code) 23 - [[Track] Bump dependencies](#track-bump-dependencies) 24 - [Set a tentative release date for the next minor release](#set-a-tentative-release-date-for-the-next-minor-release) 25 - [Assemble next release team](#assemble-next-release-team) 26 - [Update milestone applier and GitHub Actions](#update-milestone-applier-and-github-actions) 27 - [[Continuously] Maintain the GitHub release milestone](#continuously-maintain-the-github-release-milestone) 28 - [[Continuously] Bump the Go version](#continuously-bump-the-go-version) 29 - [[Repeatedly] Cut a release](#repeatedly-cut-a-release) 30 - [[Optional] Public release session](#optional-public-release-session) 31 - [[Optional] [Track] Bump the Cluster API apiVersion](#optional-track-bump-the-cluster-api-apiversion) 32 - [[Optional] [Track] Bump the Kubernetes version](#optional-track-bump-the-kubernetes-version) 33 - [[Optional] Track Release and Improvement tasks](#optional-track-release-and-improvement-tasks) 34 - [Communications/Docs/Release Notes Manager](#communicationsdocsrelease-notes-manager) 35 - [Responsibilities](#responsibilities-1) 36 - [Tasks](#tasks-1) 37 - [Add docs to collect release notes for users and migration notes for provider implementers](#add-docs-to-collect-release-notes-for-users-and-migration-notes-for-provider-implementers) 38 - [Update supported versions](#update-supported-versions) 39 - [Ensure the book for the new release is available](#ensure-the-book-for-the-new-release-is-available) 40 - [Generate weekly PR updates to post in Slack](#generate-weekly-pr-updates-to-post-in-slack) 41 - [Create PR for release notes](#create-pr-for-release-notes) 42 - [Change production branch in Netlify to the new release branch](#change-production-branch-in-netlify-to-the-new-release-branch) 43 - [Update clusterctl links in the quickstart](#update-clusterctl-links-in-the-quickstart) 44 - [Continuously: Communicate key dates to the community](#continuously-communicate-key-dates-to-the-community) 45 - [Communicate beta to providers](#communicate-beta-to-providers) 46 - [CI Signal/Bug Triage/Automation Manager](#ci-signalbug-triageautomation-manager) 47 - [Responsibilities](#responsibilities-2) 48 - [Tasks](#tasks-2) 49 - [Setup jobs and dashboards for a new release branch](#setup-jobs-and-dashboards-for-a-new-release-branch) 50 - [[Continuously] Monitor CI signal](#continuously-monitor-ci-signal) 51 - [[Continuously] Reduce the amount of flaky tests](#continuously-reduce-the-amount-of-flaky-tests) 52 - [[Continuously] Bug triage](#continuously-bug-triage) 53 54 <!-- END doctoc generated TOC please keep comment here to allow auto update --> 55 56 ## Release Lead 57 58 ### Responsibilities 59 60 * Coordination: 61 * Take ultimate accountability for all release tasks to be completed on time 62 * Coordinate release activities 63 * Create and maintain the GitHub release milestone 64 * Track tasks needed to add support for new Kubernetes versions in upcoming releases 65 * Ensure a retrospective happens 66 * Ensure one of the [maintainers](https://github.com/kubernetes-sigs/cluster-api/blob/main/OWNERS_ALIASES) is available when a release needs to be cut. 67 * Staffing: 68 * Assemble the release team for the next release cycle 69 * Ensure a release lead for the next release cycle is selected and trained 70 * Set a tentative release date for the next release cycle 71 * Cutting releases: 72 * Release patch releases for supported previous releases at least monthly or more often if needed 73 * Create beta, RC and GA releases for the minor release of the current release cycle 74 * Release lead should keep an eye on what is going on in the project to be able to react if necessary 75 76 ### Tasks 77 78 #### Finalize release schedule and team 79 80 1. Finalize release schedule and team in the [docs/release/releases](../../docs/release/releases), e.g. [release-1.6.md](../../docs/release/releases/release-1.6.md). 81 2. Update @cluster-api-release-team Slack user group and GitHub team accordingly. 82 <br>Prior art `org`: https://github.com/kubernetes/org/pull/4353 83 <br>Prior art `community`: https://github.com/kubernetes/community/pull/7423 84 3. Update @cluster-api-release-lead and @cluster-api-release-team aliases in root OWNERS_ALIASES file with Release Team members. 85 <br>Prior art: https://github.com/kubernetes-sigs/cluster-api/pull/9111/files#diff-4985b733677adf9dda6b5187397d4700868248ef646d64aecfb66c1ced575499 86 4. Announce the _release team_ and _release schedule_ to the mailing list. 87 88 #### Add/remove release team members 89 90 If necessary, the release lead can adjust the release team during the cycle to handle unexpected changes in staffing due to personal/professional issues, no-shows, or unplanned work spikes. Adding/removing members can be done by opening a PR to update the release team members list for the release cycle in question. 91 92 #### Prepare main branch for development of the new release 93 94 The goal of this issue is to bump the versions on the main branch so that the upcoming release version 95 is used for e.g. local development and e2e tests. We also modify tests so that they are testing the previous release. 96 97 This comes down to changing occurrences of the old version to the new version, e.g. `v1.5` to `v1.6`: 98 99 1. Setup E2E tests for the new release: 100 1. Goal is that we have clusterctl upgrade tests for the latest stable versions of each contract / for each supported branch. For `v1.6` this means: 101 * v1beta1: `v1.0`, `v1.4`, `v1.5` (will change with each new release) 102 2. Update providers in `docker.yaml`: 103 1. Add a new `v1.6.0` entry. 104 2. Remove providers that are not used anymore in clusterctl upgrade tests. 105 3. Change `v1.5.99` to `v1.6.99`. 106 3. Adjust `metadata.yaml`'s: 107 1. Create a new `v1.6` `metadata.yaml` (`test/e2e/data/shared/v1.6/metadata.yaml`) by copying 108 `test/e2e/data/shared/main/metadata.yaml` 109 2. Add the new release to the main `metadata.yaml` (`test/e2e/data/shared/main/metadata.yaml`). 110 3. Add the new release to the root level `metadata.yaml` 111 4. Remove old `metadata.yaml`'s that are not used anymore in clusterctl upgrade tests. 112 4. Adjust cluster templates in `test/e2e/data/infrastructure-docker`: 113 1. Create a new `v1.6` folder. It should be created based on the `main` folder and only contain the templates we use in the clusterctl upgrade tests (as of today `cluster-template` and `cluster-template-topology`). 114 2. Remove old folders that are not used anymore in clusterctl upgrade tests. 115 5. Modify the test specs in `test/e2e/clusterctl_upgrade_test.go` (according to the versions we want to test described above). 116 Please note that both `InitWithKubernetesVersion` and `WorkloadKubernetesVersion` should be the highest mgmt cluster version supported by the respective Cluster API version. 117 2. Update `create-local-repository.py` and `tools/internal/tilt-prepare/main.go`: `v1.5.99` => `v1.6.99`. 118 3. Make sure all tests are green (also run `pull-cluster-api-e2e-full-main` and `pull-cluster-api-e2e-workload-upgrade-1-27-latest-main`). 119 4. Remove an unsupported release version of Cluster API from the Makefile target that generates e2e templates. For example, remove `v1.3` while working on `v1.6`. 120 121 Prior art: 122 123 * 1.5 - https://github.com/kubernetes-sigs/cluster-api/pull/8430/files 124 * 1.6 - https://github.com/kubernetes-sigs/cluster-api/pull/9097/files 125 126 #### Create a new GitHub milestone for the next release 127 128 The goal of this task is to create [a new GitHub milestone](https://github.com/kubernetes-sigs/cluster-api/milestones) for the next release, so that we can already move tasks 129 out of the current milestone if necessary. 130 131 1. Create the milestone for the new release via GitHub UI. 132 133 #### [Track] Remove previously deprecated code 134 135 The goal of this task is to remove all previously deprecated code that can be now removed. 136 137 1. Check for deprecated code and remove it. 138 * We can't just remove all code flagged with `Deprecated`. In some cases like e.g. in API packages 139 we have to keep the old code. 140 141 Prior art: [Remove code deprecated in v1.6](https://github.com/kubernetes-sigs/cluster-api/pull/9136) 142 143 #### [Track] Bump dependencies 144 145 The goal of this task is to ensure that we have relatively up-to-date dependencies at the time of the release. 146 This reduces the risk that CVEs are found in outdated dependencies after our release. 147 148 We should take a look at the following dependencies: 149 150 * Go dependencies in `go.mod` files. 151 * Tools used in our Makefile (e.g. kustomize). 152 153 #### Set a tentative release date for the next minor release 154 155 1. Set a tentative release date for the next minor release and document it by creating a `release-X.Y.md` in [docs/release/releases](../../docs/release/releases). 156 <br>Prior art: https://github.com/kubernetes-sigs/cluster-api/pull/9635 157 158 #### Assemble next release team 159 160 There is currently no formalized process to assemble the release team. 161 As of now we ask for volunteers in Slack and office hours. 162 163 #### Update milestone applier and GitHub Actions 164 165 Once release branch is created by GitHub Automation, the goal of this task would be to ensure we have the milestone 166 applier that applies milestones accordingly and to update GitHub actions to work with new release version. 167 From this point forward changes which should land in the release have to be cherry-picked into the release branch. 168 169 1. Update the [milestone applier config](https://github.com/kubernetes/test-infra/blob/0b17ef5ffd6c7aa7d8ca1372d837acfb85f7bec6/config/prow/plugins.yaml#L371) accordingly (e.g. `release-1.5: v1.5` and `main: v1.6`) 170 <br>Prior art: [cluster-api: update milestone applier config for v1.5](https://github.com/kubernetes/test-infra/pull/30058) 171 172 2. Update the GitHub Actions to work with the new release version. 173 <br>Prior art: [Update actions for v1.6](https://github.com/kubernetes-sigs/cluster-api/pull/9708) 174 175 #### [Continuously] Maintain the GitHub release milestone 176 177 The goal of this task is to keep an overview over the current release milestone and the implementation 178 progress of issues assigned to the milestone. 179 180 This can be done by: 181 182 1. Regularly checking in with folks implementing an issue in the milestone. 183 2. If nobody is working on an issue in the milestone, drop it from the milestone. 184 3. Ensuring we have a plan to get `release-blocking` issues implemented in time. 185 186 #### [Continuously] Bump the Go version 187 188 The goal of this task is to ensure we are always using the latest Go version for our releases. 189 190 1. Keep track of new Go versions 191 2. Bump the Go version in supported branches if necessary 192 <br>Prior art: [Bump to Go 1.19.5](https://github.com/kubernetes-sigs/cluster-api/pull/7981) 193 194 Note: If the Go minor version of one of our supported branches goes out of supported, we should consider bumping 195 to a newer Go minor version according to our [backport policy](./../../CONTRIBUTING.md#backporting-a-patch). 196 197 #### [Repeatedly] Cut a release 198 199 1. Ensure CI is stable before cutting the release (e.g. by checking with the CI manager) 200 Note: special attention should be given to image scan results, so we can avoid cutting a release with CVE or document known CVEs in release notes. 201 2. Ask the [Communications/Docs/Release Notes Manager](#communicationsdocsrelease-notes-manager) to [create a PR with the release notes](#create-pr-for-release-notes) for the new desired tag and review the PR. Once the PR merges, it will trigger a [GitHub Action](https://github.com/kubernetes-sigs/cluster-api/actions/workflows/release.yaml) to create a release branch, push release tags, and create a draft release. This will also trigger a [ProwJob](https://prow.k8s.io/?repo=kubernetes-sigs%2Fcluster-api&job=post-cluster-api-push-images) to publish images to the staging repository. 202 3. Promote images from the staging repository to the production registry (`registry.k8s.io/cluster-api`): 203 1. Wait until images for the tag have been built and pushed to the [staging repository](https://console.cloud.google.com/gcr/images/k8s-staging-cluster-api) by the [post push images job](https://prow.k8s.io/?repo=kubernetes-sigs%2Fcluster-api&job=post-cluster-api-push-images). 204 2. If you don't have a GitHub token, create one by going to your GitHub settings, in [Personal access tokens](https://github.com/settings/tokens). Make sure you give the token the `repo` scope. 205 3. Create a PR to promote the images to the production registry: 206 207 ```bash 208 # Export the tag of the release to be cut, e.g.: 209 export RELEASE_TAG=v1.0.1 210 export GITHUB_TOKEN=<your GH token> 211 make promote-images 212 ``` 213 214 **Notes**: 215 * `make promote-images` target tries to figure out your Github user handle in order to find the forked [k8s.io](https://github.com/kubernetes/k8s.io) repository. 216 If you have not forked the repo, please do it before running the Makefile target. 217 * if `make promote-images` fails with an error like `FATAL while checking fork of kubernetes/k8s.io` you may be able to solve it by manually setting the USER_FORK variable i.e. `export USER_FORK=<personal GitHub handle>` 218 * `kpromo` uses `git@github.com:...` as remote to push the branch for the PR. If you don't have `ssh` set up you can configure 219 git to use `https` instead via `git config --global url."https://github.com/".insteadOf git@github.com:`. 220 * This will automatically create a PR in [k8s.io](https://github.com/kubernetes/k8s.io) and assign the CAPI maintainers. 221 4. Merge the PR (/lgtm + /hold cancel) and verify the images are available in the production registry: 222 * Wait for the [promotion prow job](https://prow.k8s.io/?repo=kubernetes%2Fk8s.io&job=post-k8sio-image-promo) to complete successfully. Then test the production images are accessible: 223 224 ```bash 225 docker pull registry.k8s.io/cluster-api/clusterctl:${RELEASE_TAG} && 226 docker pull registry.k8s.io/cluster-api/cluster-api-controller:${RELEASE_TAG} && 227 docker pull registry.k8s.io/cluster-api/kubeadm-bootstrap-controller:${RELEASE_TAG} && 228 docker pull registry.k8s.io/cluster-api/kubeadm-control-plane-controller:${RELEASE_TAG} 229 ``` 230 231 4. Publish the release in GitHub: 232 1. Reach out to one of the maintainers over the Slack to publish the release in GitHub. 233 * **NOTE:** clusterctl will have issues installing providers between the time the release tag is cut and the Github release is published. See [issue 7889](https://github.com/kubernetes-sigs/cluster-api/issues/7889) for more details. 234 * The draft release should be automatically created via the [Create Release GitHub Action](https://github.com/kubernetes-sigs/cluster-api/actions/workflows/release.yaml) with release notes previously committed to the repo by the release team. Ensure by reminding the maintainer that release is flagged as `pre-release` for all `beta` and `rc` releases or `latest` for a new release in the most recent release branch. 235 236 5. Publish `clusterctl` to Homebrew by bumping the version in [clusterctl.rb](https://github.com/Homebrew/homebrew-core/blob/master/Formula/c/clusterctl.rb). 237 <br>**Notes**: 238 * This is only done for new latest stable releases, not for beta / RC releases and not for previous release branches. 239 * Check if homebrew already has a PR to update the version (homebrew introduced automation that picks it up). Open one if no PR exists. 240 * To open a PR, you need two things: `tag` (i.e v1.5.3 & v1.4.8 releases are being published, where release-1.5 is the latest stable release branch, so tag would be v1.5.4) and `revision` (it is a commit hash of the tag, i.e if the tag is v1.5.3, it can be found by looking for commit id in [v1.5.3 tag page](https://github.com/kubernetes-sigs/cluster-api/releases/tag/v1.5.3)). 241 * Once the PR is open, no action should be needed. Homebrew bot should push a second commit (see an example [here](https://github.com/Homebrew/homebrew-core/pull/129986/commits/0da6edddf1143aa50033f7e8ae1ebd07ecdd0941)) to the same PR to update the binary hashes automatically. 242 * For an example please see: [PR: clusterctl 1.5.3](https://github.com/Homebrew/homebrew-core/pull/152279). 243 * Homebrew has [conventions for commit messages](https://docs.brew.sh/Formula-Cookbook#commit) usually 244 the commit message for us should look like: `clusterctl 1.5.3`. 245 6. **For minor releases** Set EOL date for previous release and update Cluster API support and guarantees in CONTRIBUTING.md (prior art: https://github.com/kubernetes-sigs/cluster-api/pull/9817/files). 246 7. **For latest stable releases** Index the most recent CRDs in the release by navigating to `https://doc.crds.dev/github.com/kubernetes-sigs/cluster-api@<CURRENT_RELEASE>` 247 248 Additional information: 249 250 * [Versioning documentation](./../../CONTRIBUTING.md#versioning) for more information. 251 * Cutting a release as of today requires permissions to: 252 * Create a release tag on the GitHub repository. 253 * Create/update/publish GitHub releases. 254 255 #### [Optional] Public release session 256 1. Host a release session over a public zoom meeting. 257 2. Record the session for future reference and transparency. 258 3. Use release process-related waiting periods as a forum for discussing issues/questions. 259 4. Publish the recording on YouTube channel. 260 261 #### [Optional] [Track] Bump the Cluster API apiVersion 262 263 **Note** This should only be done when we have to bump the apiVersion of our APIs. 264 265 1. Add new version of the types: 266 1. Create new api packages by copying existing packages. 267 2. Make sure webhooks only exist in the latest apiVersion (same for other subpackages like `index`). 268 3. Add conversion and conversion tests. 269 4. Adjust generate targets in the Makefile. 270 5. Consider dropping fields deprecated in the previous apiVersion. 271 2. Update import aliases in `.golangci.yml`. 272 3. Switch other code over to the new version (imports across the code base, e.g. controllers). 273 1. Add all versions to the schema in the `main.go` files. 274 4. Add types to the `PROJECT` files of the respective provider. 275 5. Add test data for the new version in `test/e2e/data/{infrastructure-docker,shared}` (also update top-level `.gitignore`). 276 6. Update `docker.yaml`, make sure all tests are successful in CI. 277 278 #### [Optional] [Track] Bump the Kubernetes version 279 280 1. Create an issue for the new Kubernetes version via: [New Issue: Kubernetes bump](https://github.com/kubernetes-sigs/cluster-api/issues/new/choose). 281 2. Track the issue to ensure the work is completed in time. 282 283 #### [Optional] Track Release and Improvement tasks 284 285 1. Create an issue for easier tracking of all the tasks for the release cycle in question. 286 <br>Prior art: [Tasks for v1.6 release cycle](https://github.com/kubernetes-sigs/cluster-api/issues/9094) 287 2. Create a release improvement tasks [GitHub Project Board](https://github.com/orgs/kubernetes-sigs/projects/55) to track 288 the current status of all improvement tasks planned for the release, their priorities, status (i.e `Done`/`In Progress`) 289 and to distribute the work among the Release Team members. 290 291 **Notes**: 292 * At the beginning of the cycle, Release Team Lead should prepare the improvement tasks board for the ongoing release cycle. 293 The following steps can be taken: 294 - Edit improvement tasks board name for current cycle (e.g. `CAPI vX.Y release improvement tasks`) 295 - Add/move all individual missing issues to the board 296 297 ## Communications/Docs/Release Notes Manager 298 299 ### Responsibilities 300 301 * Communication: 302 * Communicate key dates to the community 303 * Documentation: 304 * Improve release process documentation 305 * Ensure the book and provider upgrade documentation are up-to-date 306 * Maintain and improve user facing documentation about releases, release policy and release calendar 307 * Release Notes: 308 * Create PR with release notes 309 310 ### Tasks 311 312 #### Add docs to collect release notes for users and migration notes for provider implementers 313 314 The goal of this task is to initially create the docs so that we can continuously add notes going forward. 315 The release notes doc will be used to collect release notes during the release cycle and will be eventually 316 used to write the final release notes. The provider migration doc is part of the book and contains instructions 317 for provider authors on how to adopt to the new Cluster API version. 318 319 1. Add a new migration doc for provider implementers. 320 <br>Prior art: [Add v1.5 -> v1.6 migration doc](part of: https://github.com/kubernetes-sigs/cluster-api/pull/8996) - see changes to [SUMMARY.md](https://github.com/kubernetes-sigs/cluster-api/pull/8996/files#diff-72d1da5cbeb1afbe684444ec598fbe1815dd2ddc6aa99078ab577cefb9e279ac) and addition of [v1.5-to-v1.6.md](https://github.com/kubernetes-sigs/cluster-api/pull/8996/files#diff-135e34a16773fd40a82b4adbb265444a4fed6c1a973f48d621082b957e7ef93f) 321 322 #### Update supported versions 323 324 1. Update supported versions in versions.md. 325 <br>Prior art: [Update supported versions for v1.6](https://github.com/kubernetes-sigs/cluster-api/pull/9119) 326 327 #### Ensure the book for the new release is available 328 329 The goal of this task to make the book for the current release available under e.g. `https://release-1-6.cluster-api.sigs.k8s.io`. 330 331 1. Add a DNS entry for the book of the new release (should be available under e.g. `https://release-1-6.cluster-api.sigs.k8s.io`). 332 <br>Prior art: [Add DNS for CAPI release-1.6 release branch](https://github.com/kubernetes/k8s.io/pull/6114) 333 2. Open `https://release-1-6.cluster-api.sigs.k8s.io/` and verify that the certificates are valid. If they are not, reach out to CAPI maintainers and request someone with access Netlify [click the `renew certificate` button](https://app.netlify.com/sites/kubernetes-sigs-cluster-api/settings/domain#https) in the Netlify UI. 334 - To add new subdomains to the certificate config, checkout the email snippet [template](https://github.com/kubernetes-sigs/cluster-api/issues/6017#issuecomment-1823306891) for reference. 335 3. Update references in introduction.md only on the main branch (drop unsupported versions, add the new release version). 336 <br>Prior art: [Add release 1.5 book link](https://github.com/kubernetes-sigs/cluster-api/pull/9767) 337 338 #### Generate weekly PR updates to post in Slack 339 The goal of this task is to keep the CAPI community updated on recent PRs that have been merged. This is done by using the weekly update tool in `hack/tools/release/weekly/main.go`. Here is how to use it: 340 1. Build the release weekly update tools binary. 341 ```bash 342 make release-weekly-update-tool 343 ``` 344 2. Generate the weekly update with the following command for desired branches: 345 ```bash 346 ./bin/weekly --since <YYYY-MM-DD> --until <YYYY-MM-DD> --branch <branch_name> 347 ``` 348 **Note:** the `GITHUB_TOKEN` environment variable can be set to prevent/reduce GitHub rate limiting issues. 349 3. Paste the output into a new Slack message in the [`#cluster-api`](https://kubernetes.slack.com/archives/C8TSNPY4T) channel. Currently, we post separate messages in a thread for the branch `main` - which corresponds to the active milestone - as well as the two most recent release branches (e.g. `release-1.6` and `release-1.5`). 350 351 Example commands to run for the weekly update during ongoing development towards release 1.7: 352 ```bash 353 # Main branch changes, which correspond to actively worked on release 1.7 354 ./bin/weekly --since 2024-01-22 --until 2024-01-28 --branch main 355 356 # Previous 2 release branches 357 ./bin/weekly --since 2024-01-22 --until 2024-01-28 --branch release-1.6 358 ./bin/weekly --since 2024-01-22 --until 2024-01-28 --branch release-1.5 359 ``` 360 361 #### Create PR for release notes 362 1. Checkout the `main` branch. 363 1. Generate release notes with: 364 365 ```bash 366 # RELEASE_TAG should be the new desired tag (note: at this point the tag does not yet exist). 367 # Can be also used for pre-releases. The warning banner for RC and beta releases will be determined automatically. 368 RELEASE_TAG=v1.6.x make release-notes 369 ``` 370 371 1. This will generate a new release notes file at `CHANGELOG/<RELEASE_TAG>.md`. Finalize the release notes: 372 - [ ] Update the `Kubernetes version support section`. If this is a patch release you can most probably copy the same values from the previous patch release notes. Except if this is the release where a new Kubernetes version support is added. 373 <br>**Note**: Check our [Kubernetes support policy](https://cluster-api.sigs.k8s.io/reference/versions.html#supported-kubernetes-versions) in the CAPI book. In case of doubt, reach out to the current release lead. 374 - [ ] If this is a `vX.X.0` release, fill in the content for the `Highlights` section. Otherwise, remove the section altogether. 375 - [ ] If there a deprecations in this release (for example, a CAPI API version drop), add them, to the `Deprecation Warning` section. Otherwise, remove the section altogether. 376 - [ ] Look for any `MISSING_AREA` entries. Add the corresponding label to the PR and regenerate the notes. 377 - [ ] Look for any `MULTIPLE_AREAS` entries. If the PR does indeed guarantee multiple areas, just remove the `MULTIPLE_AREAS` prefix and just leave the areas. Otherwise, fix the labels in the PR and regenerate the notes. 378 - [ ] Review that all areas are correctly assigned to each PR. If not, correct the labels and regenerate the notes. 379 - [ ] Look for area duplications in PR title. Sometimes authors add a prefix in their PR title that matches the area label. When the notes are generated, the area is as a prefix to the PR title, which can create redundant information. Remove the one from the PR title and just leave the area. Make sure you capitalize the title after this. 380 - [ ] Check that all entries are in the right section. Sometimes the wrong emoji prefix is added to the PR title, which drives the section in which the entry is added in the release notes. Manually move any entry as needed. Note that fixing the PR title won't fix this even after regenerating the notes, since the notes tool reads this info from the commit messages and these don't get rewritten. 381 - [ ] Sort manually all entries if you made any manual edits that might have altered the correct order. 382 - [ ] **For minor releases:** Modify `Changes since v1.x.y` to `Changes since v1.x` 383 <br>**Note**: The release notes tool includes all merges since the previous release branch was branched of. 384 1. Checkout `main`, branch out from it and add `CHANGELOG/<RELEASE_TAG>.md`. 385 1. Open a pull request **against the main branch** with all manual edits to `CHANGELOG/<RELEASE_TAG>.md` which is used for the new release notes. The commit and PR title should be `🚀 Release v1.x.y`. 386 <br>**Note**: Important! The commit should only contain the release notes file, nothing else, otherwise automation will not work. 387 388 389 #### Change production branch in Netlify to the new release branch 390 391 The goal of this task to make the book for the current release available under `https://cluster-api.sigs.k8s.io`. 392 393 Reach out to the CAPI maintainers to request someone with access to Netlify perform the following steps: 394 395 1. Change production branch in Netlify the current release branch (e.g. `release-1.6`) to make the book available under `https://cluster-api.sigs.k8s.io`. It's done under [production branch settings](https://app.netlify.com/sites/kubernetes-sigs-cluster-api/settings/deploys#branches-and-deploy-contexts) 396 2. [Trigger a redeploy](https://app.netlify.com/sites/kubernetes-sigs-cluster-api/deploys). 397 398 #### Update clusterctl links in the quickstart 399 400 The goal of this task is to ensure the quickstart has links to the latest `clusterctl` binaries. 401 402 Update clusterctl links in the quickstart (on main and cherry-pick onto release-1.6). 403 <br>Prior art: [Update clusterctl version to v1.6.x in quick start](https://github.com/kubernetes-sigs/cluster-api/pull/9801) 404 405 **Note**: The PR for this should be merged after the minor release has been published. Recommended to create it before 406 the release but with `/hold`. This will allow maintainers to review and approve before the release. When the release is 407 done just remove the hold to merge it. 408 409 #### Continuously: Communicate key dates to the community 410 411 The goal of this task is to ensure all stakeholders are informed about the current release cycle. For example announcing 412 upcoming code freezes etc based on the [release timeline (1.6 example)](./releases/release-1.6.md). 413 414 Templates for all types of communication can be found in the [release-templates page](./release-templates.md). 415 416 Information can be distributed via: 417 418 * `sig-cluster-lifecycle` mailing list 419 * Note: The person sending out the email should ensure that they are first part of the mailing list. If the email is sent out is not received by the community, reach out to the maintainers to unblock and approve the email. 420 * #cluster-api Slack channel 421 * Office hours 422 * Release Team meetings 423 * Cluster API book 424 * [Github Issue](https://github.com/kubernetes-sigs/cluster-api/blob/main/docs/release/release-tasks.md#communicate-beta-to-providers) (when communicating beta release to providers) 425 426 Relevant information includes: 427 428 * Beta, RC, GA and patch release 429 * Start of code freeze 430 * Implementation progress 431 * Release delays and changes if applicable 432 433 Stakeholders are: 434 435 * End users of Cluster API 436 * Contributors to core Cluster API 437 * Provider implementers 438 439 #### Communicate beta to providers 440 441 The goal of this task is to inform all providers that a new beta.0 version a release is out and that it should be tested. We want to prevent issues where providers don't have enough time to test before a new version of CAPI is released. This stems from a previous issue we are trying to avoid: https://github.com/kubernetes-sigs/cluster-api/issues/8498 442 443 We should inform at least the following providers via a new issue on their respective repos that a new version of CAPI is being released (provide the release date) and that the beta.0 version is ready for them to test. 444 445 * Addon provider helm: https://github.com/kubernetes-sigs/cluster-api-addon-provider-helm/issues/new 446 * AWS: https://github.com/kubernetes-sigs/cluster-api-provider-aws/issues/new 447 * Azure: https://github.com/kubernetes-sigs/cluster-api-provider-azure/issues/new 448 * Cloudstack: https://github.com/kubernetes-sigs/cluster-api-provider-cloudstack/issues/new 449 * Digital Ocean: https://github.com/kubernetes-sigs/cluster-api-provider-digitalocean/issues/new 450 * GCP: https://github.com/kubernetes-sigs/cluster-api-provider-gcp/issues/new 451 * Kubemark: https://github.com/kubernetes-sigs/cluster-api-provider-kubemark/issues/new 452 * Kubevirt: https://github.com/kubernetes-sigs/cluster-api-provider-kubevirt/issues/new 453 * IBMCloud: https://github.com/kubernetes-sigs/cluster-api-provider-ibmcloud/issues/new 454 * Metal3: https://github.com/metal3-io/cluster-api-provider-metal3/issues/new 455 * Nested: https://github.com/kubernetes-sigs/cluster-api-provider-nested/issues/new 456 * OCI: https://github.com/oracle/cluster-api-provider-oci/issues/new 457 * Openstack: https://github.com/kubernetes-sigs/cluster-api-provider-openstack/issues/new 458 * Operator: https://github.com/kubernetes-sigs/cluster-api-operator/issues/new 459 * Packet: https://github.com/kubernetes-sigs/cluster-api-provider-packet/issues/new 460 * vSphere: https://github.com/kubernetes-sigs/cluster-api-provider-vsphere/issues/new 461 462 To create GitHub issues at the Cluster API providers repositories and inform about a new minor beta release, use ["provider_issues.go"](../../hack/tools/release/internal/update_providers/provider_issues.go) go utility. 463 - Ensure that the [provider repos pre-requisites](../../hack/tools/release/internal/update_providers/README.md#pre-requisites) are completed. 464 - From the root of this repository, run `make release-provider-issues-tool` to create git issues at the provider repositories. 465 466 ## CI Signal/Bug Triage/Automation Manager 467 468 ### Responsibilities 469 470 * Signal: 471 * Responsibility for the quality of the release 472 * Continuously monitor CI signal, so a release can be cut at any time 473 * Add CI signal for new release branches 474 * Bug Triage: 475 * Make sure blocking issues and bugs are triaged and dealt with in a timely fashion 476 * Automation: 477 * Maintain and improve release automation, tooling & related developer docs 478 479 ### Tasks 480 481 #### Setup jobs and dashboards for a new release branch 482 483 The goal of this task is to have test coverage for the new release branch and results in testgrid. 484 While we add test coverage for the new release branch we will also drop the tests for old release branches if necessary. 485 486 1. Create new jobs based on the jobs running against our `main` branch: 487 1. Copy the `main` branch entry as `release-1.6` in the `cluster-api-prowjob-gen.yaml` file in [test-infra](https://github.com/kubernetes/test-infra/blob/master/config/jobs/kubernetes-sigs/cluster-api/). 488 2. Modify the following at the `release-1.6` branch entry: 489 * Change intervals (let's use the same as for `release-1.5`). 490 2. Create a new dashboard for the new branch in: `test-infra/config/testgrids/kubernetes/sig-cluster-lifecycle/config.yaml` (`dashboard_groups` and `dashboards`). 491 3. Remove old release branches and unused versions from the `cluster-api-prowjob-gen.yaml` file in [test-infra](https://github.com/kubernetes/test-infra/blob/master/config/jobs/kubernetes-sigs/cluster-api/) according to our policy documented in [Support and guarantees](../../CONTRIBUTING.md#support-and-guarantees). For example, let's assume we just added `release-1.6`, then we can now drop test coverage for the `release-1.3` branch. 492 4. Regenerate the probjob configuration using `make generate-test-infra-prowjobs`. 493 5. Verify the jobs and dashboards a day later by taking a look at: `https://testgrid.k8s.io/sig-cluster-lifecycle-cluster-api-1.6` 494 6. Update `.github/workflows/weekly-security-scan.yaml` - to setup Trivy and govulncheck scanning - `.github/workflows/weekly-md-link-check.yaml` - to setup link checking in the CAPI book - and `.github/workflows/weekly-test-release.yaml` - to verify the release target is working - for the currently supported branches. 495 7. Update the [PR markdown link checker](https://github.com/kubernetes-sigs/cluster-api/blob/main/.github/workflows/pr-md-link-check.yaml) accordingly (e.g. `main` -> `release-1.6`). 496 <br>Prior art: [Update branch for link checker](https://github.com/kubernetes-sigs/cluster-api/pull/9206) 497 498 499 Prior art: 500 501 * [Add jobs for CAPI release 1.6](https://github.com/kubernetes/test-infra/pull/31208) 502 * [Update github workflows](https://github.com/kubernetes-sigs/cluster-api/pull/8398) 503 504 #### [Continuously] Monitor CI signal 505 506 The goal of this task is to keep our tests running in CI stable. 507 508 **Note**: To be very clear, this is not meant to be an on-call role for Cluster API tests. 509 510 1. Add yourself to the [Cluster API alert mailing list](https://github.com/kubernetes/k8s.io/blob/151899b2de933e58a4dfd1bfc2c133ce5a8bbe22/groups/sig-cluster-lifecycle/groups.yaml#L20-L35) 511 <br\>**Note**: An alternative to the alert mailing list is manually monitoring the [testgrid dashboards](https://testgrid.k8s.io/sig-cluster-lifecycle-cluster-api) 512 (also dashboards of previous releases). Using the alert mailing list has proven to be a lot less effort though. 513 2. Subscribe to `CI Activity` notifications for the Cluster API repo. 514 3. Check the existing **failing-test** and **flaking-test** issue templates under `.github/ISSUE_TEMPLATE/` folder of the repo, used to create an issue for failing or flaking tests respectively. Please make sure they are up-to-date and if not, send a PR to update or improve them. 515 4. Check if there are any existing jobs that got stuck (have been running for more than 12 hours) in a ['pending'](https://prow.k8s.io/?repo=kubernetes-sigs%2Fcluster-api&state=pending) state: 516 - If that is the case, notify the maintainers and ask them to manually cancel and re-run the stuck jobs. 517 5. Triage CI failures reported by mail alerts or found by monitoring the testgrid dashboards: 518 1. Create an issue using an appropriate template (failing-test) in the Cluster API repository to surface the CI failure. 519 2. Identify if the issue is a known issue, new issue or a regression. 520 3. Mark the issue as `release-blocking` if applicable. 521 6. Triage periodic GitHub actions failures, with special attention to image scan results; 522 Eventually open issues as described above. 523 7. Run periodic deep-dive sessions with the CI team to investigate failing and flaking tests. Example session recording: https://www.youtube.com/watch?v=YApWftmiDTg 524 525 #### [Continuously] Reduce the amount of flaky tests 526 527 The Cluster API tests are pretty stable, but there are still some flaky tests from time to time. 528 529 To reduce the amount of flakes please periodically: 530 531 1. Take a look at recent CI failures via `k8s-triage`: 532 * [main: e2e, e2e-mink8s, test, test-mink8s](https://storage.googleapis.com/k8s-triage/index.html?job=.*cluster-api.*(test%7Ce2e)-(mink8s-)*main&xjob=.*-provider-.*) 533 2. Open issues using an appropriate template (flaking-test) for occurring flakes and ideally fix them or find someone who can. 534 **Note**: Given resource limitations in the Prow cluster it might not be possible to fix all flakes. 535 Let's just try to pragmatically keep the amount of flakes pretty low. 536 537 #### [Continuously] Bug triage 538 539 The goal of bug triage is to triage incoming issues and if necessary flag them with `release-blocking` 540 and add them to the milestone of the current release. 541 542 We probably have to figure out some details about the overlap between the bug triage task here, release leads 543 and Cluster API maintainers.