rancher-sandbox / cluster-api-provider-rke2

RKE2 bootstrap and control-plane Cluster API providers.
Apache License 2.0
78 stars 24 forks source link

Add upgrade test #308

Closed richardcase closed 1 month ago

richardcase commented 2 months ago

We are changing the logic in relation to version in the v1beta1 release (specifically in #306). As a result we need to add a test to ensure that we don't break existing users of the provider.

The test should use an example from an existing user.

Danil-Grigorev commented 1 month ago

I believe it was done in https://github.com/rancher-sandbox/cluster-api-provider-rke2/pull/313 and couple PRs prior in upgrade e2e. This test is complex for a reason, as it tests multiple aspects of API version bump, version conversion and scalability before/after the upgrade. The complexity was mostly added to replicate edge case scenarios with different customer environments.