34
34
capoRelease011 string
35
35
capoRelease012 string
36
36
capiRelease19 string
37
+ orcRelease10 string
37
38
)
38
39
39
- var _ = Describe ("When testing clusterctl upgrades (v0.11=>current) [clusterctl-upgrade]" , func () {
40
+ var _ = Describe ("When testing clusterctl upgrades for CAPO (v0.11=>current) and ORC (v1.0 =>current) [clusterctl-upgrade]" , func () {
40
41
BeforeEach (func (ctx context.Context ) {
41
42
setDownloadE2EImageEnvVar ()
42
43
// Note: This gives the version without the 'v' prefix, so we need to add it below.
@@ -47,29 +48,34 @@ var _ = Describe("When testing clusterctl upgrades (v0.11=>current) [clusterctl-
47
48
capiRelease19 , err = capi_e2e .GetStableReleaseOfMinor (ctx , "1.9" )
48
49
Expect (err ).ToNot (HaveOccurred (), "failed to get stable release of CAPI" )
49
50
capiRelease19 = "v" + capiRelease19
51
+ // Note: This gives the version without the 'v' prefix, so we need to add it below.
52
+ orcRelease10 , err = clusterctl .ResolveRelease (ctx , "go://github.com/k-orc/openstack-resource-controller@v1.0" )
53
+ Expect (err ).ToNot (HaveOccurred (), "failed to get stable release of ORC" )
54
+ orcRelease10 = "v" + orcRelease10
50
55
})
51
56
52
57
capi_e2e .ClusterctlUpgradeSpec (context .TODO (), func () capi_e2e.ClusterctlUpgradeSpecInput {
53
58
return capi_e2e.ClusterctlUpgradeSpecInput {
54
- E2EConfig : e2eCtx .E2EConfig ,
55
- ClusterctlConfigPath : e2eCtx .Environment .ClusterctlConfigPath ,
56
- BootstrapClusterProxy : e2eCtx .Environment .BootstrapClusterProxy ,
57
- ArtifactFolder : e2eCtx .Settings .ArtifactFolder ,
58
- SkipCleanup : false ,
59
- InitWithBinary : "https://github.com/kubernetes-sigs/cluster-api/releases/download/" + capiRelease19 + "/clusterctl-{OS}-{ARCH}" ,
60
- InitWithProvidersContract : "v1beta1" ,
61
- InitWithInfrastructureProviders : []string {"openstack:" + capoRelease011 },
62
- InitWithCoreProvider : "cluster-api:" + capiRelease19 ,
63
- InitWithBootstrapProviders : []string {"kubeadm:" + capiRelease19 },
64
- InitWithControlPlaneProviders : []string {"kubeadm:" + capiRelease19 },
65
- MgmtFlavor : shared .FlavorDefault ,
66
- WorkloadFlavor : shared .FlavorDefault ,
67
- InitWithKubernetesVersion : e2eCtx .E2EConfig .MustGetVariable (shared .KubernetesVersion ),
59
+ E2EConfig : e2eCtx .E2EConfig ,
60
+ ClusterctlConfigPath : e2eCtx .Environment .ClusterctlConfigPath ,
61
+ BootstrapClusterProxy : e2eCtx .Environment .BootstrapClusterProxy ,
62
+ ArtifactFolder : e2eCtx .Settings .ArtifactFolder ,
63
+ SkipCleanup : false ,
64
+ InitWithBinary : "https://github.com/kubernetes-sigs/cluster-api/releases/download/" + capiRelease19 + "/clusterctl-{OS}-{ARCH}" ,
65
+ InitWithProvidersContract : "v1beta1" ,
66
+ InitWithInfrastructureProviders : []string {"openstack:" + capoRelease011 },
67
+ InitWithCoreProvider : "cluster-api:" + capiRelease19 ,
68
+ InitWithBootstrapProviders : []string {"kubeadm:" + capiRelease19 },
69
+ InitWithControlPlaneProviders : []string {"kubeadm:" + capiRelease19 },
70
+ MgmtFlavor : shared .FlavorDefault ,
71
+ WorkloadFlavor : shared .FlavorDefault ,
72
+ InitWithKubernetesVersion : e2eCtx .E2EConfig .MustGetVariable (shared .KubernetesVersion ),
73
+ InitWithRuntimeExtensionProviders : []string {"openstack-resource-controller:" + orcRelease10 },
68
74
}
69
75
})
70
76
})
71
77
72
- var _ = Describe ("When testing clusterctl upgrades (v0.12=>current) [clusterctl-upgrade]" , func () {
78
+ var _ = Describe ("When testing clusterctl upgrades for CAPO (v0.12=>current) and ORC (v1.0=>current) [clusterctl-upgrade]" , func () {
73
79
BeforeEach (func (ctx context.Context ) {
74
80
setDownloadE2EImageEnvVar ()
75
81
// Note: This gives the version without the 'v' prefix, so we need to add it below.
@@ -80,24 +86,29 @@ var _ = Describe("When testing clusterctl upgrades (v0.12=>current) [clusterctl-
80
86
capiRelease19 , err = capi_e2e .GetStableReleaseOfMinor (ctx , "1.9" )
81
87
Expect (err ).ToNot (HaveOccurred (), "failed to get stable release of CAPI" )
82
88
capiRelease19 = "v" + capiRelease19
89
+ // Note: This gives the version without the 'v' prefix, so we need to add it below.
90
+ orcRelease10 , err = clusterctl .ResolveRelease (ctx , "go://github.com/k-orc/openstack-resource-controller@v1.0" )
91
+ Expect (err ).ToNot (HaveOccurred (), "failed to get stable release of ORC" )
92
+ orcRelease10 = "v" + orcRelease10
83
93
})
84
94
85
95
capi_e2e .ClusterctlUpgradeSpec (context .TODO (), func () capi_e2e.ClusterctlUpgradeSpecInput {
86
96
return capi_e2e.ClusterctlUpgradeSpecInput {
87
- E2EConfig : e2eCtx .E2EConfig ,
88
- ClusterctlConfigPath : e2eCtx .Environment .ClusterctlConfigPath ,
89
- BootstrapClusterProxy : e2eCtx .Environment .BootstrapClusterProxy ,
90
- ArtifactFolder : e2eCtx .Settings .ArtifactFolder ,
91
- SkipCleanup : false ,
92
- InitWithBinary : "https://github.com/kubernetes-sigs/cluster-api/releases/download/" + capiRelease19 + "/clusterctl-{OS}-{ARCH}" ,
93
- InitWithProvidersContract : "v1beta1" ,
94
- InitWithInfrastructureProviders : []string {"openstack:" + capoRelease012 },
95
- InitWithCoreProvider : "cluster-api:" + capiRelease19 ,
96
- InitWithBootstrapProviders : []string {"kubeadm:" + capiRelease19 },
97
- InitWithControlPlaneProviders : []string {"kubeadm:" + capiRelease19 },
98
- MgmtFlavor : shared .FlavorDefault ,
99
- WorkloadFlavor : shared .FlavorDefault ,
100
- InitWithKubernetesVersion : e2eCtx .E2EConfig .MustGetVariable (shared .KubernetesVersion ),
97
+ E2EConfig : e2eCtx .E2EConfig ,
98
+ ClusterctlConfigPath : e2eCtx .Environment .ClusterctlConfigPath ,
99
+ BootstrapClusterProxy : e2eCtx .Environment .BootstrapClusterProxy ,
100
+ ArtifactFolder : e2eCtx .Settings .ArtifactFolder ,
101
+ SkipCleanup : false ,
102
+ InitWithBinary : "https://github.com/kubernetes-sigs/cluster-api/releases/download/" + capiRelease19 + "/clusterctl-{OS}-{ARCH}" ,
103
+ InitWithProvidersContract : "v1beta1" ,
104
+ InitWithInfrastructureProviders : []string {"openstack:" + capoRelease012 },
105
+ InitWithCoreProvider : "cluster-api:" + capiRelease19 ,
106
+ InitWithBootstrapProviders : []string {"kubeadm:" + capiRelease19 },
107
+ InitWithControlPlaneProviders : []string {"kubeadm:" + capiRelease19 },
108
+ MgmtFlavor : shared .FlavorDefault ,
109
+ WorkloadFlavor : shared .FlavorDefault ,
110
+ InitWithKubernetesVersion : e2eCtx .E2EConfig .MustGetVariable (shared .KubernetesVersion ),
111
+ InitWithRuntimeExtensionProviders : []string {"openstack-resource-controller:" + orcRelease10 },
101
112
}
102
113
})
103
114
})
0 commit comments