Skip to content

Commit acecabb

Browse files
committed
Add v1.10=>v1.12=>current test
Signed-off-by: Stefan Büringer buringerst@vmware.com
1 parent ad599b6 commit acecabb

File tree

2 files changed

+52
-1
lines changed

2 files changed

+52
-1
lines changed

test/e2e/clusterctl_upgrade_test.go

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,57 @@ var (
4040
providerDockerPrefix = "docker:v%s"
4141
)
4242

43+
var _ = Describe("When testing clusterctl upgrades using ClusterClass (v1.10=>v1.12=>current) [PR-Blocking] [ClusterClass]", Label("PR-Blocking", "ClusterClass"), func() {
44+
version := "1.10"
45+
stableRelease10, err := GetStableReleaseOfMinor(ctx, version)
46+
Expect(err).ToNot(HaveOccurred(), "Failed to get stable version for minor release : %s", version)
47+
48+
version = "1.12"
49+
stableRelease12, err := GetStableReleaseOfMinor(ctx, version)
50+
Expect(err).ToNot(HaveOccurred(), "Failed to get stable version for minor release : %s", version)
51+
ClusterctlUpgradeSpec(ctx, func() ClusterctlUpgradeSpecInput {
52+
return ClusterctlUpgradeSpecInput{
53+
E2EConfig: e2eConfig,
54+
ClusterctlConfigPath: clusterctlConfigPath,
55+
BootstrapClusterProxy: bootstrapClusterProxy,
56+
ArtifactFolder: artifactFolder,
57+
SkipCleanup: skipCleanup,
58+
// Configuration for the initial provider deployment.
59+
InitWithBinary: fmt.Sprintf(clusterctlDownloadURL, stableRelease10),
60+
// We have to pin the providers because with `InitWithProvidersContract` the test would
61+
// use the latest version for the contract (which is the next minor for v1beta1).
62+
InitWithCoreProvider: fmt.Sprintf(providerCAPIPrefix, stableRelease10),
63+
InitWithBootstrapProviders: []string{fmt.Sprintf(providerKubeadmPrefix, stableRelease10)},
64+
InitWithControlPlaneProviders: []string{fmt.Sprintf(providerKubeadmPrefix, stableRelease10)},
65+
InitWithInfrastructureProviders: []string{fmt.Sprintf(providerDockerPrefix, stableRelease10)},
66+
InitWithRuntimeExtensionProviders: []string{},
67+
Upgrades: []ClusterctlUpgradeSpecInputUpgrade{
68+
{
69+
WithBinary: fmt.Sprintf(clusterctlDownloadURL, stableRelease12),
70+
CoreProvider: fmt.Sprintf(providerCAPIPrefix, stableRelease12),
71+
BootstrapProviders: []string{fmt.Sprintf(providerKubeadmPrefix, stableRelease12)},
72+
ControlPlaneProviders: []string{fmt.Sprintf(providerKubeadmPrefix, stableRelease12)},
73+
InfrastructureProviders: []string{fmt.Sprintf(providerDockerPrefix, stableRelease12)},
74+
},
75+
{ // Upgrade to latest contract version.
76+
Contract: clusterv1.GroupVersion.Version,
77+
PostUpgrade: func(proxy framework.ClusterProxy, namespace, clusterName string) {
78+
framework.ValidateCRDMigration(ctx, proxy, namespace, clusterName,
79+
crdShouldBeMigrated, clusterctlcluster.FilterClusterObjectsWithNameFilter(clusterName))
80+
},
81+
},
82+
},
83+
// Note: Both InitWithKubernetesVersion and WorkloadKubernetesVersion should be the highest mgmt cluster version supported by the source Cluster API version.
84+
// When picking this version, please check also the list of versions known by the source Cluster API version (rif. test/infrastructure/kind/mapper.go).
85+
InitWithKubernetesVersion: "v1.33.0",
86+
WorkloadKubernetesVersion: "v1.33.0",
87+
MgmtFlavor: "topology",
88+
WorkloadFlavor: "topology",
89+
UseKindForManagementCluster: true,
90+
}
91+
})
92+
})
93+
4394
// Note: This test should be changed during "prepare main branch", it should test n-3 => current.
4495
var _ = Describe("When testing clusterctl upgrades using ClusterClass (v1.10=>current) [ClusterClass]", Label("ClusterClass"), func() {
4596
// Get n-3 latest stable release

test/e2e/quick_start_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ var _ = Describe("When following the Cluster API quick-start", func() {
7575
})
7676
})
7777

78-
var _ = Describe("When following the Cluster API quick-start with ClusterClass [PR-Blocking] [ClusterClass]", Label("PR-Blocking", "ClusterClass"), func() {
78+
var _ = Describe("When following the Cluster API quick-start with ClusterClass", Label("ClusterClass"), func() {
7979
QuickStartSpec(ctx, func() QuickStartSpecInput {
8080
return QuickStartSpecInput{
8181
E2EConfig: e2eConfig,

0 commit comments

Comments
 (0)