Framework: Support starting controller version in clusterctl upgrade tests #7603
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
User Story
As a provider developer I would like to select the controller version to start from for clusterctl upgrade tests since the provider API version can differ from the CAPI contract.
Detailed Description
Currently the clusterctl upgrade test always starts from the latest version supporting the selected contract:
cluster-api/test/e2e/clusterctl_upgrade.go
Line 265 in 6c65434
Providers such as CAPO can have different API versions even for the same contract version. For example, CAPO v0.5 and v0.6 are both compatible with CAPI v1beta1, but have different CAPO API versions (v1alpha4 and v1alpha5). This means that there is no way to select v0.5 as starting point if v0.6 is also in the e2e config.
It is possible to work around this limitation by crafting specific e2e configs for each situation, but it is hardly convenient.
Anything else you would like to add:
For reference, CAPO compatibility matrix: https://github.com/kubernetes-sigs/cluster-api-provider-openstack#compatibility-with-cluster-api-and-kubernetes-versions
/kind feature
The text was updated successfully, but these errors were encountered: