Release Process
This document aims to outline the process that should be followed for cutting a new release of cert-manager. If you would like to know more about current releases and the timeline for future releases, take a look at the Supported Releases page.
Prerequisites
⛔️ Do not proceed with the release process if you do not meet all of the following conditions:
-
The relevant testgrid dashboard should not be failing for the release you're trying to perform.
-
The cert-manager
govulncheckGitHub Action must be passing on the branch you're trying to release. If necessary, runmake verify-govulnchecklocally. -
The release process takes about 40 minutes. You must have time to complete all the steps.
-
You need to have the GitHub
adminpermission on the cert-manager project. To check that you have theadminrole, run:brew install ghgh auth logingh api /repos/cert-manager/cert-manager/collaborators/$(gh api /user | jq -r .login)/permission | jq .permissionIf your permission is
admin, then you are good to go. To request theadminpermission on the cert-manager project, open a PR with a link to here. -
You need to be added as an "Editor" to the GCP project cert-manager-release. To check if you do have access, try opening the Cloud Build page. To get the "Editor" permission on the GCP project, you need to be a maintainer. If you are, open a PR with your email address added to the release manager list in
variables.tfYou may use the following PR description:
Title: Access to the cert-manager-release GCP projectHi. As stated in "Prerequisites" on the [release-process][1] page,I need access to the [cert-manager-release][2] project on GCP inorder to perform the release process. Thanks![1]: https://cert-manager.io/docs/contributing/release-process/#prerequisites[2]: https://console.cloud.google.com/?project=cert-manager-release -
You need to be a developer on the (private) project https://github.com/jetstack/jetstack-secure. For now, only Palo Alto employees are able to do that. This is required for publishing the regular Helm chart.
-
You need to have "write" access to the https://quay.io/jetstack organization. only Palo Alto employees are able to do that. This is required for publishing the OCI Helm chart.
This guide applies for versions of cert-manager released using make, which is every version from cert-manager 1.8 and newer.
If you need to release a version of cert-manager 1.7 or earlier see older releases.
Tool Setup
First, ensure that you have all the tools required to perform a cert-manager release:
-
Install the
release-notesCLI:go install k8s.io/release/cmd/release-notes@v0.13.0 -
Install our
cmrelCLI:go install github.com/cert-manager/release/cmd/cmrel@latest -
Clone the
cert-manager/releaserepo:# Don't clone it from inside the cert-manager repo folder.git clone https://github.com/cert-manager/releasecd release -
Install the
gcloudCLI. -
Login to
gcloud:gcloud auth application-default login -
Make sure
gcloudpoints to the cert-manager-release project:gcloud config set project cert-manager-releaseexport CLOUDSDK_CORE_PROJECT=cert-manager-release # this is used by cmrel -
Get a GitHub access token here with no scope ticked. It is used only by the
release-notesCLI to avoid API rate limiting since it will go through all the PRs one by one. -
Ensure that you have
gsutilinstalled; it's part of the Google Cloud SDK. -
Ensure you have
cosigninstalled. See the cosign installation instructions. -
Ensure you have permissions to push to the OCI Helm chart registry,
quay.io/jetstack/charts. You may need to run commands from Helm's documentation. Specifically, you will need to have runhelm registry login -u=USERNAME -p=PASSWORD quay.ioto authenticate with the registry. Credentials can be obtained from thequay.ioweb UI if you're already a member of thejetstackorganization on Quay.
Minor releases
A minor release is a backwards-compatible 'feature' release. It can contain new features and bug fixes.
Process for releasing a version
🔰 Please click on the Edit this page button on the top-right corner of this page if a step is missing or if it is outdated.
-
Remind yourself of our release terminology by looking at the following table. This will allow you to know which steps to skip by looking the header of the step, e.g., (final release only) means that this step must only be performed when doing a final release.
Type of release Example of git tag initial alpha release v1.3.0-alpha.0subsequent alpha release v1.3.0-alpha.1initial beta release v1.3.0-beta.0subsequent beta release v1.3.0-beta.1final release v1.3.0(optional) patch pre-release1 v1.3.1-beta.0patch release (or "point release") v1.3.1 -
Set the 4 environment variables by copying the following snippet in your shell table:
export RELEASE_VERSION="v1.3.0-alpha.0"export START_TAG="v1.2.0"export END_REV="release-1.3"export BRANCH="release-1.3"Note: To help you fill in the correct values, use the following examples:
Variable Example 1 Example 2 Example 2 Example 3 Example 4 initial alpha subsequent alpha beta release final release patch release RELEASE_VERSIONv1.3.0-alpha.0v1.3.0-alpha.1v1.3.0-beta.0v1.3.0v1.3.1START_TAGv1.2.0v1.3.0-alpha.0v1.3.0-alpha.1v1.2.0*v1.3.0END_REVmastermasterrelease-1.3release-1.3release-1.3BRANCHmastermasterrelease-1.3release-1.3release-1.3*Do not use a patch here (e.g., no
v1.2.3). It must bev1.2.0: you must use the latest tag that belongs to the release branch you are releasing on; in the above example, the release branch isrelease-1.3, and the latest tag on that branch isv1.2.0.Note: The 4 variables are described in the README of the
release-notestool. For your convenience, the following table summarizes what you need to know:Variable Description RELEASE_VERSIONThe git tag START_TAG*The git tag of the "previous"* release END_REVName of your release branch (inclusive) BRANCHName of your release branch -
(final release) Prepare the "Docs Freeze" PR
⚠️ This step can be done ahead of time.
Imagining that you are about to release v1.20.0, run the following from the master branch:
./scripts/freeze-docs 1.19Then, create a PR "Freeze 1.19" on
master. -
(final + patch releases) Prepare the "Release Notes" PR.
⚠️ This step can be done ahead of time.
Create a PR on the website titled "Release And Upgrade Notes".
- If you are doing a final release, then this PR's base must be the
release-nextbranch. - If you are doing a patch release, then this PR's base must be
master.
The PR will contain the following:
-
Run the
release-notescommand (see instructions further down below in this page). -
(final release) Move the generated
website-release-notes.mdtocontent/docs/release-notes/release-notes-1.20.md. Make sure to edit it to match the format of our past release notes. -
(patch release) Add the contents of the generated
website-release-notes.mdto a new section of the existing release, e.g., incontent/docs/release-notes/release-notes-1.20.md. -
(final release) Create a new file:
content/docs/releases/upgrading/upgrading-1.19-1.20.mdSee for example: upgrading-1.0-1.1.
-
(final release) Add an entry to
content/docs/manifest.jsonfor the new release note file:{"routes": [# ...{"title": "Upgrade 1.19 to 1.20","path": "/docs/releases/upgrading/upgrading-1.19-1.20.md"},{"title": "1.20","path": "/docs/releases/release-notes/release-notes-1.20.md"}]}
- If you are doing a final release, then this PR's base must be the
-
(final + patch releases) Prepare the "Version Bumps" PR:
⚠️ This step can be done ahead of time.
Create a PR on the website titled something like "Bump versions".
- If you are doing a final release, then this PR's base must be the
release-nextbranch. - If you are doing a patch release, then this PR's base must be
master.
In this PR:
-
Update the CRD and CLI docs with the following instructions:
Imagining that you are about to release v1.20.0, edit
scripts/gendocs/generate-new-import-path-docsto changeCM_BRANCHandDOCS_FOLDERto:CM_BRANCH="release-1.20"DOCS_FOLDER="docs"Then, run:
./scripts/gendocs/generate -
(final + patch release of the latest minor version) Bump the latest cert-manager version variable in the
content/docs/variables.jsonfile. For example, if you are releasing v1.20.0:{"cert_manager_latest_version": "v1.20.0"} -
(final release) Edit
content/docs/releases/README.mdand:- update the section "Supported releases",
- update the section "How we determine supported Kubernetes versions".
- If you are doing a final release, then this PR's base must be the
-
Check that the
originremote is correct. To do that, run the following command and make sure it returns the upstreamhttps://github.com/cert-manager/cert-manager.git:# Must be run from the cert-manager repo folder.git remote -v | grep originIt should show:
origin https://github.com/cert-manager/cert-manager (fetch)origin https://github.com/cert-manager/cert-manager (push) -
Place yourself on the correct branch:
-
(initial alpha and subsequent alpha): place yourself on the
masterbranch:git checkout mastergit pull origin master -
(initial beta only) The release branch doesn't exist yet, so let's create it and push it:
# Must be run from the cert-manager repo folder.git checkout mastergit pull origin mastergit checkout -b release-1.12 mastergit push origin release-1.12GitHub permissions:
git pushwill only work if you have theadminGitHub permission on the cert-manager repo to create or push to the branch, see prerequisites. If you do not have this permission, you will have to open a PR to merge master into the release branch), and wait for the PR checks to become green. -
(initial beta only) Create a PR on the release branch you just created to edit the file
make/_shared/klone/01_mod.mk:-shared_generate_targets += generate-klone+# MANUAL CHANGE!+# generate-klone is removed so we can manually update versions+# and diverge from upstream klone+# shared_generate_targets += generate-kloneThis is required to prevent future Go version bumps on the release branch from being reverted by
make generate. Example PR: #8578. -
(subsequent beta, patch release and final release): place yourself on the release branch:
git checkout release-1.12git pull origin release-1.12You don't need to fast-forward the branch because things have been merged using
/cherry-pick release-1.0.Note about the code freeze:
The first beta starts a new "code freeze" period that lasts until the final release. Just before the code freeze, we fast-forward everything from master into the release branch.
During the code freeze, we continue merging PRs into master as usual.
We don't fast-forward master into the release branch for the second (and subsequent) beta, and only
/cherry-pick release-1.0the fixes that should be part of the subsequent beta.We don't fast-forward for patch releases and final releases; instead, we prepare these releases using the
/cherry-pick release-1.0command.
Note about branch protection: The release branches are protected by GitHub branch protection, which is configured automatically by Prow. This prevents anyone accidentally pushing changes directly to these branches, even repository administrators. If you need, for some reason, to fast forward the release branch, you should delete the branch protection for that release branch, using the GitHub branch protection web UI. This is only a temporary change to allow you to update the branch. Prow will re-apply the branch protection within 24 hours.
-
-
Create the required tags for the new release locally and push it upstream (starting the cert-manager build):
echo $RELEASE_VERSIONgit tag -m"$RELEASE_VERSION" $RELEASE_VERSION# be sure to push the named tag explicitly; you don't want to push any other local tags!git push origin $RELEASE_VERSIONNote:
git pushwill only work if you have theadminGitHub permission on the cert-manager repo to create or push to the branch, see prerequisites. If you do not have this permission, you will have to open a PR to merge master into the release branch), and wait for the PR checks to become green. -
In this section, we create the description for the GitHub Release and some release notes for the website.
Note: This step is about creating the description that will be copy-pasted into the GitHub release page. The creation of the "Release Note" page on the website is done in a previous step.
-
Check that all the 4 environment variables are ready:
echo $RELEASE_VERSIONecho $START_TAGecho $END_REVecho $BRANCH -
Generate
github-release-description.mdandwebsite-release-notes.mdwith the following commands:# Must be run from the cert-manager folder.export GITHUB_TOKEN=$(gh auth token)git fetch origin $BRANCHexport START_SHA="$(git rev-list --reverse --ancestry-path $(git merge-base $START_TAG $BRANCH)..$BRANCH | head -1)"release-notes --debug --repo-path cert-manager \--org cert-manager --repo cert-manager \--required-author "cert-manager-prow[bot]" \--markdown-links=false \--dependencies=false \--output github-release-description.mdrelease-notes --debug --repo-path cert-manager \--org cert-manager --repo cert-manager \--required-author "cert-manager-prow[bot]" \--markdown-links=true \--dependencies=false \--output website-release-notes.mdThe GitHub token does not need any scope. The token is required only to avoid rate-limits imposed on anonymous API users.
-
Prepare a short summary of the contents of the release which will be used for both the GitHub Release and the website release notes.
-
Update the relevant release notes file on the website repo to include the contents of
website-release-notes.md.
-
-
Send a Slack message to
#cert-manager-devto announce that you are starting the release:Releasing
v1.20.0🧵 -
Go through the
cmrelpublish process:-
Check that the build that was automatically triggered when you pushed the tag is complete in the GCB Build History.
-
Run the following command:
# Must be run from the "cert-manager/release" repo folder.cmrel publish --release-name "$RELEASE_VERSION"This will run
cmrel publishin dry-run mode to ensure that all the staged resources are valid. You can view the progress by clicking the Google Cloud Build URL in the output of this command. -
Now publish the release artifacts for real. The following command will publish the artifacts to GitHub,
Quay.ioand to our Helm chart repository:# Must be run from the "cert-manager/release" repo folder.cmrel publish --nomock --release-name "$RELEASE_VERSION"⏰ Upon completion there will be:
-
-
Publish the GitHub release:
-
Visit the draft GitHub release and paste
github-release-description.mdthat you generated earlier. You will need to manually edit the content to match the style of earlier releases and to explain what's in the release. -
(initial alpha, subsequent alpha and beta only) Tick the box "This is a pre-release".
-
(final release and patch release) Tick the box "Set as the latest release".
-
Click "Publish" to make the GitHub release live.
-
-
Merge the pull request containing the Helm chart:
Important: This PR can currently only be merged by CyberArk employees, but we're aiming to fix that soon. Changing this will involve us coming up with a plan for migrating where our Helm charts are stored and ensuring we don't break anyone.
The Helm charts for cert-manager are served using Cloudflare pages and the Helm chart files and metadata are stored in the Jetstack charts repository. The
cmrel publish --nomockstep (above) will have created a PR in this repository which you now have to review and merge, as follows:- Visit the pull request
- Review the changes
- Fix any failing checks
- Test the chart
- Download the chart tarball from the pull-request
- Start a new local Kind cluster
kind create cluster --name release - Install the helm chart onto the kind cluster
helm install cert-manager ./cert-manager-v0.15.0.tgz --set crds.enabled=true -n cert-manager - Ensure install succeeds and all components are running
- Tear down the kind cluster
kind delete cluster --name release
- Merge the PR
- Check that the cert-manager Helm chart is visible on ArtifactHUB.
-
Upload the Helm chart to the OCI registry:
-
Run the following command to upload the Helm chart to the OCI registry, and sign it with cosign:
# Must be run from the "cert-manager/release" repo folder../hack/push_and_sign_chart.shThis command will also check the cosign signature it creates. In addition, it creates a non-V-prefixed tag to enable easier
helm upgradecommands. -
Check that the Helm chart is available in the OCI registry by running:
crane manifest quay.io/jetstack/charts/cert-manager:$RELEASE_VERSIONLook for config, content and provenance layers in the output.
-
-
(final releases) Merge the "Docs Freeze" PR.
-
(final + patch releases)
-
Merge the "Release Notes" PR and "Bump Versions" PR.
-
Create the PR "Merge release-next into master" by clicking here.
If you see the label
dco-signoff: no, add a comment on the PR with:/override dcoThis command is necessary because some the merge commits have been written by the bot and do not have a DCO signoff.
-
-
Post a Slack message as a reply to the first message. Toggle the check box "Also send to
#cert-manager-dev" so that the message is well visible. Also cross-post the message on#cert-manager. -
(final release only) Show the release to the world:
-
Send an email to
cert-manager-dev@googlegroups.comwith thereleaselabel (examples). -
Send a tweet on the cert-manager Twitter account! Login details are in the cert-manager 1password. (Example tweet).
-
Send a toot from the cert-manager Mastodon account! Login details are in the cert-manager 1password. (Example toot)
-
Create a post on the cert-manager BlueSky account! Login details are in the cert-manager 1password. (Example post)
-
-
Proceed to the post-release "testing and release" steps:
-
(initial beta only) Create a PR on cert-manager/testing in order to add the new release to our list of periodic ProwJobs. Use this PR as an example. You'll need to run the
make prowgencommand to generate the new config. -
(final release only) Create a PR on cert-manager/testing, removing any unsupported release versions from prow config.
-
(final release only) In
cert-manager/testingcheckmilestone_applierconfig so that newly raised PRs on master are applied to a new milestone for the next release.Also check required status checks for the release branch and testgrid dashboard configuration.
If the milestone for the next release doesn't exist, create it first. If you consider the milestone for the version you just released to be complete, close it.
-
Other Release Processes
Krew and Homebrew
Since cmctl used to be part of the cert-manager repo, we'd publish cmctl releases alongside cert-manager. Now that cmctl lives in its own repo that doesn't make sense any more, and so any references in this release process or in older versions to publishing to Krew and Homebrew have been removed.
OLM (OpenShift Operator Lifecycle Manager)
We previously made efforts to publish OLM releases of cert-manager on a best-effort basis. We agreed in early 2025 to discontinue this, since the burden was too much and usually fell unfairly on one maintainer.
Footnotes
-
One or more "patch pre-releases" may be created to allow voluntary community testing of a bug fix or security fix before the fix is made generally available. The suffix
-betamust be used for patch pre-releases. ↩