Closed sachinkumarsingh092 closed 1 year ago
Thank you for this work @sachinkumarsingh092 . These e2e tests are run during a release, therefore we want to have both upgrade strategies to be checked. I saw you have introduced a env variable through which we can select the upgrade strategy. Could have a separate test to upgrade a non-HA cluster? Maybe a subtest test could work.
Yeah, making a new subtest is very easy now with all the refactoring. I thought about making a new test for in-place and having 2 tests for Rollout and in-place separately. But after having already executed one of the tests, say rollout upgrades, the cluster is now in a new version. Unless we are sure that an even newer version exists, this can break the in-place upgrade tests. We have these options to now test in-place upgrades:
WDYT?
2. Make a new cluster entirely with the older version before in-place tests.
I would suggest we create a new cluster, with less nodes (eg 1 CP, 1 worker)
LGTM +1
Summary
Added e2e tests for
inPlace
upgrades. Also did some refactoring to make it easy if and when we want different tests for different upgrade strategies.