[e2e] Support managed cluster upgrade testing #619
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #313. Partially contains the implementation for #641.
This PR contains the following changes that are not related to the upgrade itself but were required:
ClusterTemplateChain
as part of thehmc-templates
helm chart with all the supported cluster templates definedClusterTemplateChain
in theTemplateManagement
which allows us to test cluster templates' distribution system from the system namespace to thedefault
namespace. The default access rules are applied on kind and on the standalone clustersdefault
namespace instead of the system namespaceChanges regarding the e2e upgrade testing:
upgrade: true
parameter under the cluster configuration section. It is disabled by default.spec.template
in theManagedCluster
object, verifying that the helm objects were updated, and verifying the cluster health after itThe example of the e2e testing configuration introduced in this PR:
To pass the custom testing configuration to the e2e tests you should define the
E2E_CONFIG_B64
env var with the e2e configuration in the yaml format encoded inbase64
and runmake test-e2e
.Out of scope: