Release Candidate Process

This process applies to all releases candidates:

If you intent to release a new feature release, see the Feature Release Process section instead.

Note

The following commands have been validated when ran in the VM used in the Cilium development process. See Development Setup for detailed instructions about setting up said VM.

  1. Ensure that the necessary features and fixes have been completed and merged into the branch for which the release candidate will happen.

    1. Update GitHub project and create vX.Y.Z-rcW+1 project if applicable.
    2. Update PRs / issues that were added to the vX.Y.Z-rcW project, but didn’t make it into this release into the vX.Y.Z-rcW+1 project.
  2. Checkout the desired stable branch (can be master branch if stable branch was not created) and pull it:

    1. git checkout v1.0; git pull
  3. Create a branch for the release pull request:

    1. git checkout -b pr/prepare-v1.0.3
  4. Update the AUTHORS file

    1. make update-authors

    Note

    Check to see if the AUTHORS file has any formatting errors (for instance, indentation mismatches) as well as duplicate contributor names, and correct them accordingly.

  5. Set the right version for the CustomResourceDefinitionSchemaVersion in the pkg/k8s/client by following these instructions:

    If you are doing the first RC for a new minor version, the validation schema version should be vX.Y.1 regardless of the value set in CustomResourceDefinitionSchemaVersion. For example, when setting up the first RC for Cilium 1.11, 1.11.0-rc1, the validation schema should be vX.Y+1.1 where X and Y are the major and minor versions used in the schema version of Cilium 1.10.

    If this is not the first RC run, and there is a branch for vX.Y:

    Run ./Documentation/check-crd-compat-table.sh vX.Y

    If a branch for vX.Y doesn’t exist yet, then manually ensure the CRD schema version has not been incremented in the case there were no changes. If there were changes to the CRD, then ensure it is incremented at most by 1 patch version.

  6. If there is a branch for this RC, prepare the changelog now. If this is the first RC, X.Y.Z should be the last, stable version, otherwise X.Y.Z should point to the last released RC contrib/release/prep-changelog.sh X.Y.Z X.Y.0-rcX.

  7. Add all modified files using git add and create a commit with the title Prepare for release vX.Y.Z-rcW+1.

  8. If a branch for vX.Y doesn’t exist yet, we need to modify the VERSION file temporarily so that --version returns the right RC version.

    Change the file VERSION with vX.Y.Z-rcW+1.

  9. Run make -C install/kubernetes all USE_DIGESTS=false

  10. If there is not branch for this RC, prepare the changelog now (as it was previously skipped). If this is the first RC, X.Y.Z should be the last, stable version, otherwise X.Y.Z should point to the last released RC contrib/release/prep-changelog.sh X.Y.Z X.Y.0-rcX.

  11. Add all modified files using git add and create a pull request with the title Create helm chart release vX.Y.Z-rcW+1.

  12. Follow standard procedures to get the aforementioned PR merged into the desired stable branch. See Submitting a pull request for more information about this process.

  13. Checkout out the stable branch and pull your merged changes:

    1. git checkout v1.0; git pull
  14. Create release tags:

    1. git tag -a v1.0.3 -m 'Release v1.0.3'
    2. git tag -a 1.0.3 -m 'Release 1.0.3'

    Note

    There are two tags that correspond to the same release because GitHub recommends using vx.y.z for release version formatting, and ReadTheDocs, which hosts the Cilium documentation, requires the version to be in format x.y.z For more information about how ReadTheDocs does versioning, you can read their Versions Documentation.

  15. Push the git release tag

    1. git push --tags
  16. Create a GitHub release:

    1. Choose the correct target branch, e.g. v1.0

    2. Choose the correct target tag, e.g. v1.0.3

    3. Title: 1.0.3

    4. Check the This is a pre-release box if you are releasing a release candidate.

    5. Fill in the release description:

      1. Summary of Changes
      2. ------------------
      3. **Important Bug Fixes**
      4. * Fix dropped packets upon agent bootstrap when iptables rules are installed (@ianvernon)
      5. **Enhancements**
      6. **Documentation**
      7. Changes
      8. -------
      9. ```
      10. << contents of NEWS.rst for this release >>
      11. ```
    6. Preview the description and then publish the release

  17. Get the digests for the vX.Y.Z-rcN and make a commit to the helm charts repository to include those digests.

  18. Follow standard procedures to get the aforementioned PR merged into the desired stable branch. See Submitting a pull request for more information about this process.

  19. Checkout out the stable branch and pull your merged changes:

    1. git checkout v1.0; git pull
  20. Publish the helm charts for this RC.

  21. If there isn’t a stable branch available we need to revert the changes made in the commit “Create helm chart release vX.Y.Z-rcW+1” as the master should not point to this RC. Make a commit reverting the changes and push those changes as a PR to be merged into master.

  22. Announce the release in the #general channel on Slack. Sample text:

    1. :cilium-new: Cilium release candidate vX.Y.Z-rcN has been released:
    2. https://github.com/cilium/cilium/releases/tag/vX.Y.Z-rcN
    3. This release is not recommended for use in production clusters, but if
    4. you're in a position to pull it and try it out in staging / testing
    5. environments and report issues that you find, this will help us to put
    6. out a high-quality, stable final release :)