You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/e2e/clusterctl_upgrade.go
+103-54
Original file line number
Diff line number
Diff line change
@@ -61,6 +61,12 @@ type ClusterctlUpgradeSpecInput struct {
61
61
ClusterctlConfigPathstring
62
62
BootstrapClusterProxy framework.ClusterProxy
63
63
ArtifactFolderstring
64
+
65
+
// UseKindForManagementCluster instruct the test to use kind for creating the management cluster (instead to use the actual infrastructure provider).
66
+
// NOTE: given that the bootstrap cluster could be shared by several tests, it is not practical to use it for testing clusterctl upgrades.
67
+
// So we are creating a new management cluster where to install older version of providers
68
+
UseKindForManagementClusterbool
69
+
64
70
// InitWithBinary must be used to specify the URL of the clusterctl binary of the old version of Cluster API. The spec will interpolate the
65
71
// strings `{OS}` and `{ARCH}` to `runtime.GOOS` and `runtime.GOARCH` respectively, e.g. https://github.com/kubernetes-sigs/cluster-api/releases/download/v0.3.23/clusterctl-{OS}-{ARCH}
// If the test is not being run in a separated kind cluster, setup a Namespace in the current bootstrap cluster where to host objects for this spec and create a watcher for the namespace events.
// Note: most of this images won't be used while starting the controllers, because it is used to spin up older versions of CAPI. Those images will be eventually used when upgrading to current.
// NOTE: If this version is changed here the image and SHA must also be updated in all DockerMachineTemplates in `test/data/infrastructure-docker/v0.4/bases.
167
168
// Note: Both InitWithKubernetesVersion and WorkloadKubernetesVersion should be the highest mgmt cluster version supported by the source Cluster API version.
// NOTE: If this version is changed here the image and SHA must also be updated in all DockerMachineTemplates in `test/data/infrastructure-docker/v1.0/bases.
201
203
// Note: Both InitWithKubernetesVersion and WorkloadKubernetesVersion should be the highest mgmt cluster version supported by the source Cluster API version.
// Note: Both InitWithKubernetesVersion and WorkloadKubernetesVersion should be the highest mgmt cluster version supported by the source Cluster API version.
232
-
InitWithKubernetesVersion: "v1.28.0",
233
-
WorkloadKubernetesVersion: "v1.28.0",
234
-
MgmtFlavor: "topology",
235
-
WorkloadFlavor: "",
235
+
InitWithKubernetesVersion: "v1.28.0",
236
+
WorkloadKubernetesVersion: "v1.28.0",
237
+
MgmtFlavor: "topology",
238
+
WorkloadFlavor: "",
239
+
UseKindForManagementCluster: true,
236
240
}
237
241
})
238
242
})
@@ -259,10 +263,11 @@ var _ = Describe("When testing clusterctl upgrades using ClusterClass (v1.5=>cur
// Note: Both InitWithKubernetesVersion and WorkloadKubernetesVersion should be the highest mgmt cluster version supported by the source Cluster API version.
// Note: Both InitWithKubernetesVersion and WorkloadKubernetesVersion should be the highest mgmt cluster version supported by the source Cluster API version.
286
-
InitWithKubernetesVersion: "v1.29.2",
287
-
WorkloadKubernetesVersion: "v1.29.2",
288
-
MgmtFlavor: "topology",
289
-
WorkloadFlavor: "",
291
+
InitWithKubernetesVersion: "v1.29.2",
292
+
WorkloadKubernetesVersion: "v1.29.2",
293
+
MgmtFlavor: "topology",
294
+
WorkloadFlavor: "",
295
+
UseKindForManagementCluster: true,
290
296
}
291
297
})
292
298
})
@@ -307,10 +313,11 @@ var _ = Describe("When testing clusterctl upgrades using ClusterClass (v1.6=>cur
// Note: Both InitWithKubernetesVersion and WorkloadKubernetesVersion should be the highest mgmt cluster version supported by the source Cluster API version.
0 commit comments