OCP Branching Tasks
OCP Branching Tasks for the HyperShift Team
These are a set of tasks we need to perform on every OCP branching. We need to:
- Update the HyperShift Repository to add the latest supported OCP version - Update Supported Version
- Update the base images in our Dockerfiles (if they are available at branching) - Update Dockerfiles
- Update the OpenShift Release repository to fix the step registry configuration files - OpenShift/Release
- Update TestGrid to include the new OCP version tests - TestGrid
Danger
If test platform are testing new OCP releases before the release is cut the hypershift test will fail and block payloads until:
- There are at least two accepted nightly payloads for the new release.
- The supported versions in the HyperShift repository are updated.
HyperShift Repository
Update Supported Version
We need to add the latest supported version in the hypershift
repository. We need to modify two files:
support/supportedversion/version.go
which contains the variable calledLatestSupportedVersion
. 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 to validate the Latest version. It should comply with the established contract to support 2 versions prior to the Latest.
Example Supported Version Bump PR
Update Dockerfiles
We also need to bump the base images in our Dockerfiles.
Openshift/Release Repository
The Step registry config should be updated by Test Platform. However, the Test Platform is not aware of custom configurations of the different version for specific hypershift tests. So, we need to check over the Step registry config and make sure that the hypershift tests are correctly configured. Below is an example of the necessary changes to the Step registry config after test platform bumps:
We should also ensure that the latest release branch is using the Hypershift Operator and e2e from main.
Update TestGrid
We need to update TestGrid to include the new OCP version tests.
Here is an Example PR to do that.