- If a task is prefixed with
[Track]
it means it should be ensured that this task is done, but the folks with the corresponding role are not responsible to do it themselves.
- Responsibilities
- Tasks
- Finalize release schedule and team
- Add/remove release team members
- Prepare main branch for development of the new release
- Create a new GitHub milestone for the next release
- [Track] Remove previously deprecated code
- [Track] Bump dependencies
- Set a tentative release date for the next minor release
- Assemble next release team
- Update milestone applier and GitHub Actions
- [Continuously] Maintain the GitHub release milestone
- [Continuously] Bump the Go version
- [Repeatedly] Cut a release
- [Optional] Public release session
- [Optional] [Track] Bump the Cluster API apiVersion
- [Optional] [Track] Bump the Kubernetes version
- [Optional] Track Release and Improvement tasks
- Coordination:
- Take ultimate accountability for all release tasks to be completed on time
- Coordinate release activities
- Create and maintain the GitHub release milestone
- Track tasks needed to add support for new Kubernetes versions in upcoming releases
- Ensure a retrospective happens
- Ensure one of the maintainers is available when a release needs to be cut.
- Staffing:
- Assemble the release team for the next release cycle
- Ensure a release lead for the next release cycle is selected and trained
- Set a tentative release date for the next release cycle
- Cutting releases:
- Release patch releases for supported previous releases at least monthly or more often if needed
- Create beta, RC and GA releases for the minor release of the current release cycle
- Release lead should keep an eye on what is going on in the project to be able to react if necessary
- Finalize release schedule and team in the docs/release/releases, e.g. release-1.6.md.
- Update @cluster-api-release-team Slack user group and GitHub team accordingly.
Prior artorg
: kubernetes/org#4353
Prior artcommunity
: kubernetes/community#7423 - Update @cluster-api-release-lead and @cluster-api-release-team aliases in root OWNERS_ALIASES file with Release Team members.
Prior art: https://github.com/kubernetes-sigs/cluster-api/pull/9111/files#diff-4985b733677adf9dda6b5187397d4700868248ef646d64aecfb66c1ced575499 - Announce the release team and release schedule to the mailing list.
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.
The goal of this issue is to bump the versions on the main branch so that the upcoming release version is used for e.g. local development and e2e tests. We also modify tests so that they are testing the previous release.
This comes down to changing occurrences of the old version to the new version, e.g. v1.5
to v1.6
:
- Setup E2E tests for the new release:
- Goal is that we have clusterctl upgrade tests for all relevant upgrade cases
- Modify the test specs in
test/e2e/clusterctl_upgrade_test.go
. Please note the comments above each test case (look forThis test should be changed during "prepare main branch"
) Please note that bothInitWithKubernetesVersion
andWorkloadKubernetesVersion
should be the highest management cluster version supported by the respective Cluster API version. - Please ping maintainers after these changes are made for a first round of feedback before continuing with the steps below.
- Modify the test specs in
- Update providers in
docker.yaml
:- Add a new
v1.6
entry. - Remove providers that are not used anymore in clusterctl upgrade tests.
- Change
v1.5.99
tov1.6.99
.
- Add a new
- Adjust
metadata.yaml
's:- Create a new
v1.6
metadata.yaml
(test/e2e/data/shared/v1.6/metadata.yaml
) by copyingtest/e2e/data/shared/main/metadata.yaml
- Add the new release to the main
metadata.yaml
(test/e2e/data/shared/main/metadata.yaml
). - Add the new release to the root level
metadata.yaml
- Remove old
metadata.yaml
's that are not used anymore in clusterctl upgrade tests.
- Create a new
- Adjust cluster templates in
test/e2e/data/infrastructure-docker
:- Create a new
v1.6
folder. It should be created based on themain
folder and only contain the templates we use in the clusterctl upgrade tests (as of todaycluster-template
andcluster-template-topology
). - Remove old folders that are not used anymore in clusterctl upgrade tests.
- Create a new
- Add a new Makefile target (e.g.
generate-e2e-templates-v1.6
) and potentially remove the Makefile target of versions that are not used anymore (if something was removed in 4.2)
- Goal is that we have clusterctl upgrade tests for all relevant upgrade cases
- Update
create-local-repository.py
andtools/internal/tilt-prepare/main.go
:v1.5.99
=>v1.6.99
. - Make sure all tests are green (also run
pull-cluster-api-e2e-full-main
andpull-cluster-api-e2e-workload-upgrade-1-27-latest-main
).
Prior art:
- 1.10 - #11647
The goal of this task is to create a new GitHub milestone for the next release, so that we can already move tasks out of the current milestone if necessary.
- Create the milestone for the new release via GitHub UI.
The goal of this task is to remove all previously deprecated code that can be now removed.
- Check for deprecated code and remove it.
- We can't just remove all code flagged with
Deprecated
. In some cases like e.g. in API packages we have to keep the old code.
- We can't just remove all code flagged with
Prior art: Remove code deprecated in v1.6
The goal of this task is to ensure that we have relatively up-to-date dependencies at the time of the release. This reduces the risk that CVEs are found in outdated dependencies after our release.
We should take a look at the following dependencies:
- Go dependencies in
go.mod
files. - Tools used in our Makefile (e.g. kustomize).
- Set a tentative release date for the next minor release and document it by creating a
release-X.Y.md
in docs/release/releases.
Prior art: #9635
There is currently no formalized process to assemble the release team. As of now we ask for volunteers in Slack and office hours.
Overweighing the CI team with members is preferred as maintaining a clean CI signal is crucial to the health of the project.
Once release branch is created by GitHub Automation, the goal of this task would be to ensure we have the milestone applier that applies milestones accordingly and to update GitHub actions to work with new release version. From this point forward changes which should land in the release have to be cherry-picked into the release branch.
-
Update the milestone applier config accordingly (e.g.
release-1.5: v1.5
andmain: v1.6
)
Prior art: cluster-api: update milestone applier config for v1.5 -
Update the GitHub Actions to work with the new release version.
Prior art: Update actions for v1.7
The goal of this task is to keep an overview over the current release milestone and the implementation progress of issues assigned to the milestone.
This can be done by:
- Regularly checking in with folks implementing an issue in the milestone.
- If nobody is working on an issue in the milestone, drop it from the milestone.
- Ensuring we have a plan to get
release-blocking
issues implemented in time.
The goal of this task is to ensure we are always using the latest Go version for our releases.
- Keep track of new Go versions
- Bump the Go version in supported branches if necessary
Prior art: Bump go to v1.23.7
Note: If the Go minor version of one of our supported branches goes out of supported, we should consider bumping to a newer Go minor version according to our backport policy.
-
Ensure CI is stable before cutting the release (e.g. by checking with the CI manager) 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.
-
Ask the Communications/Docs/Release Notes Manager to create a PR with the release notes for the new desired tag and review the PR. Once the PR merges, it will trigger a GitHub Action to create a release branch, push release tags, and create a draft release. This will also trigger a ProwJob to publish images to the staging repository.
-
Promote images from the staging repository to the production registry (
registry.k8s.io/cluster-api
):-
Wait until images for the tag have been built and pushed to the staging repository by the post push images job.
-
If you don't have a GitHub token, create one by going to your GitHub settings, in Personal access tokens. Make sure you give the token the
repo
scope. -
Create a PR to promote the images to the production registry:
# Export the tag of the release to be cut, e.g.: export RELEASE_TAG=v1.0.1 export GITHUB_TOKEN=<your GH token> make promote-images
Notes:
make promote-images
target tries to figure out your Github user handle in order to find the forked k8s.io repository. If you have not forked the repo, please do it before running the Makefile target.- if
make promote-images
fails with an error likeFATAL 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>
kpromo
uses[email protected]:...
as remote to push the branch for the PR. If you don't havessh
set up you can configure git to usehttps
instead viagit config --global url."https://github.com/".insteadOf [email protected]:
.- This will automatically create a PR in k8s.io and assign the CAPI maintainers.
-
Merge the PR (/lgtm + /hold cancel) and verify the images are available in the production registry:
- Wait for the promotion prow job to complete successfully. Then test the production images are accessible:
docker pull registry.k8s.io/cluster-api/clusterctl:${RELEASE_TAG} && docker pull registry.k8s.io/cluster-api/cluster-api-controller:${RELEASE_TAG} && docker pull registry.k8s.io/cluster-api/kubeadm-bootstrap-controller:${RELEASE_TAG} && docker pull registry.k8s.io/cluster-api/kubeadm-control-plane-controller:${RELEASE_TAG}
-
-
Publish the release in GitHub:
- Reach out to one of the maintainers over the Slack to publish the release in GitHub.
- The draft release should be automatically created via the Create Release GitHub Action 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 allbeta
andrc
releases orlatest
for a new release in the most recent release branch.
- The draft release should be automatically created via the Create Release GitHub Action with release notes previously committed to the repo by the release team. Ensure by reminding the maintainer that release is flagged as
- Reach out to one of the maintainers over the Slack to publish the release in GitHub.
-
Publish
clusterctl
to Homebrew by bumping the version in clusterctl.rb.
Notes:- This is only done for new latest stable releases, not for beta / RC releases and not for previous release branches.
- Check if homebrew already has a PR to update the version (homebrew introduced automation that picks it up). Open one if no PR exists.
- 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) andrevision
(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). - Once the PR is open, no action should be needed. Homebrew bot should push a second commit (see an example here) to the same PR to update the binary hashes automatically.
- For an example please see: PR: clusterctl 1.5.3.
- Homebrew has conventions for commit messages usually
the commit message for us should look like:
clusterctl 1.5.3
.
- To open a PR, you need two things:
-
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).
-
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>
Additional information:
- Versioning documentation for more information.
- Cutting a release as of today requires permissions to:
- Create a release tag on the GitHub repository.
- Create/update/publish GitHub releases.
- Host a release session over a public zoom meeting.
- Record the session for future reference and transparency.
- Use release process-related waiting periods as a forum for discussing issues/questions.
- Publish the recording on YouTube channel.
Note This should only be done when we have to bump the apiVersion of our APIs.
- Add new version of the types:
- Create new api packages by copying existing packages.
- Make sure webhooks only exist in the latest apiVersion (same for other subpackages like
index
). - Add conversion and conversion tests.
- Adjust generate targets in the Makefile.
- Consider dropping fields deprecated in the previous apiVersion.
- Update import aliases in
.golangci.yml
. - Switch other code over to the new version (imports across the code base, e.g. controllers).
- Add all versions to the schema in the
main.go
files.
- Add all versions to the schema in the
- Add types to the
PROJECT
files of the respective provider. - Add test data for the new version in
test/e2e/data/{infrastructure-docker,shared}
(also update top-level.gitignore
). - Update
docker.yaml
, make sure all tests are successful in CI.
- Create an issue for the new Kubernetes version via: New Issue: Kubernetes bump.
- Track the issue to ensure the work is completed in time.
-
Create an issue for easier tracking of all the tasks for the release cycle in question.
Prior art: Tasks for v1.6 release cycle -
Create a release improvement tasks GitHub Project Board to track the current status of all improvement tasks planned for the release, their priorities, status (i.e
Done
/In Progress
) and to distribute the work among the Release Team members.Notes:
- At the beginning of the cycle, Release Team Lead should prepare the improvement tasks board for the ongoing release cycle.
The following steps can be taken:
- Edit improvement tasks board name for current cycle (e.g.
CAPI vX.Y release improvement tasks
) - Add/move all individual missing issues to the board
- Edit improvement tasks board name for current cycle (e.g.
- Tasks that improve release automation, tooling & related developer docs are ideal candidates and should be prioritized.
- At the beginning of the cycle, Release Team Lead should prepare the improvement tasks board for the ongoing release cycle.
The following steps can be taken: