Skip to content

Commit 03408a2

Browse files
authored
Merge pull request #1659 from shiftstack/issue1658
🐛Fix failing clusterctl upgrade test
2 parents 2e29edc + 4f22061 commit 03408a2

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

test/e2e/suites/e2e/clusterctl_upgrade_test.go

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ import (
2828
"sigs.k8s.io/cluster-api-provider-openstack/test/e2e/shared"
2929
)
3030

31+
const OldCAPIVersion = "v1.4.6"
32+
3133
var _ = Describe("When testing clusterctl upgrades (v0.6=>current) [clusterctl-upgrade]", func() {
3234
ctx := context.TODO()
3335
shared.SetEnvVar("USE_CI_ARTIFACTS", "true", false)
@@ -40,9 +42,12 @@ var _ = Describe("When testing clusterctl upgrades (v0.6=>current) [clusterctl-u
4042
BootstrapClusterProxy: e2eCtx.Environment.BootstrapClusterProxy,
4143
ArtifactFolder: e2eCtx.Settings.ArtifactFolder,
4244
SkipCleanup: false,
43-
InitWithBinary: "https://github.com/kubernetes-sigs/cluster-api/releases/download/v1.4.1/clusterctl-{OS}-{ARCH}",
45+
InitWithBinary: "https://github.com/kubernetes-sigs/cluster-api/releases/download/" + OldCAPIVersion + "/clusterctl-{OS}-{ARCH}",
4446
InitWithProvidersContract: "v1beta1",
4547
InitWithInfrastructureProviders: []string{"openstack:v0.6.4"},
48+
InitWithCoreProvider: "cluster-api:" + OldCAPIVersion,
49+
InitWithBootstrapProviders: []string{"kubeadm:" + OldCAPIVersion},
50+
InitWithControlPlaneProviders: []string{"kubeadm:" + OldCAPIVersion},
4651
MgmtFlavor: shared.FlavorDefault,
4752
WorkloadFlavor: shared.FlavorV1alpha5,
4853
}
@@ -61,9 +66,12 @@ var _ = Describe("When testing clusterctl upgrades (v0.7=>current) [clusterctl-u
6166
BootstrapClusterProxy: e2eCtx.Environment.BootstrapClusterProxy,
6267
ArtifactFolder: e2eCtx.Settings.ArtifactFolder,
6368
SkipCleanup: false,
64-
InitWithBinary: "https://github.com/kubernetes-sigs/cluster-api/releases/download/v1.3.1/clusterctl-{OS}-{ARCH}",
69+
InitWithBinary: "https://github.com/kubernetes-sigs/cluster-api/releases/download/" + OldCAPIVersion + "/clusterctl-{OS}-{ARCH}",
6570
InitWithProvidersContract: "v1beta1",
6671
InitWithInfrastructureProviders: []string{"openstack:v0.7.2"},
72+
InitWithCoreProvider: "cluster-api:" + OldCAPIVersion,
73+
InitWithBootstrapProviders: []string{"kubeadm:" + OldCAPIVersion},
74+
InitWithControlPlaneProviders: []string{"kubeadm:" + OldCAPIVersion},
6775
MgmtFlavor: shared.FlavorDefault,
6876
WorkloadFlavor: shared.FlavorV1alpha6,
6977
}

0 commit comments

Comments
 (0)