Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions test/e2e/cluster_upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ type ClusterUpgradeConformanceSpecInput struct {
// Allows to inject a function to be run before checking control-plane machines to be upgraded.
// If not specified, this is a no-op.
PreWaitForControlPlaneToBeUpgraded func(managementClusterProxy framework.ClusterProxy, workloadClusterNamespace, workloadClusterName string)

// ClusterctlVariables allows injecting variables to the cluster template.
// If not specified, this is a no-op.
ClusterctlVariables map[string]string
}

// ClusterUpgradeConformanceSpec implements a spec that upgrades a cluster and runs the Kubernetes conformance suite.
Expand Down Expand Up @@ -151,6 +155,7 @@ func ClusterUpgradeConformanceSpec(ctx context.Context, inputGetter func() Clust
ConfigCluster: clusterctl.ConfigClusterInput{
LogFolder: filepath.Join(input.ArtifactFolder, "clusters", input.BootstrapClusterProxy.GetName()),
ClusterctlConfigPath: input.ClusterctlConfigPath,
ClusterctlVariables: input.ClusterctlVariables,
KubeconfigPath: input.BootstrapClusterProxy.GetKubeconfigPath(),
InfrastructureProvider: infrastructureProvider,
Flavor: ptr.Deref(input.Flavor, "upgrades"),
Expand Down