Skip to content

Release process


This is a complex process that involves some changes in multiple repositories and will affect multiple teams daily basis work. Make sure you have multiple reviewers from Core dev team which could guide you in the full process.

Preparing a release in Openshift/Hypershift repository

Bumping release version and generating Release Notes

The hypershift repo produces two different artifacts: Hypershift Operator (HO) and Control Plane Operator (CPO).

The CPO release lifecycle is dictated by the OCP release payload.

The HO has an independent release cadence. For consumer products:

  • Our internal image build system builds from our latest commit in main several times a day.
  • To roll out a new build we apply the following process:
  • Create a git tag for the commit belonging to the image to be rolled out:
    • git co $commit-sha
    • git tag v0.1.1
    • Push against remote.
  • Generate release notes:
    • FROM=v0.1.0 TO=v0.1.1 make release
    • Use the output to create the PR for bump the new image in the product gitOps repo. E.g.

This is a sample of how the release notes looks like added to the PR:

## area/control-plane-operator

- [cpo: cno: follow image name change in release payload](

## area/hypershift-operator

- [Added documentation around supported-versions configmap](
- [Add comment for BaseDomainPrefix](
- [Add condition to NodePool indicating whether a security group for it is available](
- [HOSTEDCP-827: Add root volume encryption e2e test](
- [fix(hypershift): reduce CAPI rbac access](
- [Validate Network Input for HostedCluster](

Supported Versions

This change involves basically the OCP supported versions by Hypershift operator:

  • support/supportedversion/version.go which contains the variable called LatestSupportedVersion. This one contains, as you can imagine, the Latest supported version. We need to put the new version here.
  • support/supportedversion/version_test.go contains the tests for the to validate the Latest version. It should comply with the established contract to support 2 versions prior to the Latest.

We need also to modify some things manually in the Openshift/Release repo.

Preparing a release in Openshift/Release repository

Step Registry/CLI

From folder: ci-operator/step-registry/hypershift/ in the OCP release repo. In each file we will have a section called from_image: overriding the current release version (E.G) "4.11" to the new one "4.12". You can check an example here:

  • aws/create/hypershift-aws-create-chain.yaml
  • aws/destroy-nested-management-cluster/hypershift-aws-destroy-nested-management-cluster-chain.yaml
  • aws/destroy/hypershift-aws-destroy-chain.yaml
  • aws/setup-nested-management-cluster/hypershift-aws-setup-nested-management-cluster-chain.yaml
  • aws/run-e2e/external/hypershift-aws-run-e2e-external-chain.yaml
  • azure/create/hypershift-azure-create-chain.yaml
  • azure/destroy/hypershift-azure-destroy-chain.yaml
  • dump/hypershift-dump-chain.yaml
  • install/hypershift-install-chain.yaml
  • kubevirt/create/hypershift-kubevirt-create-chain.yaml

Mirroring Images for CPO and HO

For folder core-services/image-mirroring/hypershift/ we need to add a mapping file for each version we want to mirror. This is a sample of how it looks like this kind of file. This sample points to version 4.13 and the filename is mapping_hypershift_4_13:

As you can see, the version is hardcoded but, what happens to the latest version?:

We should create another file which contains the pointer to the latest version.

Conformance Jobs

From folder ci-operator/config/openshift/hypershift we need to focus in the releases section. You need to modify the files in this manner (maybe more than one time in each file), (E.G) from "4.11" bumping to "4.12", in the nexts files:

  • openshift-hypershift-main.yaml
  • openshift-hypershift-main__periodics.yaml
  • openshift-hypershift-release-4.11__periodics.yaml
  • openshift-hypershift-main-periodics.yaml
  • openshift-hypershift-main-presubmits.yaml
  • openshift-hypershift-release-4.11-periodics.yaml

Add new Presubmits jobs:

  • openshift-hypershift-release-4.11-presubmits.yaml

Delete the older Presubmits jobs with unsupported versions:

  • openshift-hypershift-release-4.10-presubmits.yaml