@@ -21,8 +21,10 @@ import (
2121)
2222
2323const (
24- workDir = "/opt/metal3-dev-env/"
25- contract = "v1beta1"
24+ workDir = "/opt/metal3-dev-env/"
25+ contract = "v1beta1"
26+ releaseMarkerPrefixCAPM3 = "go://github.com/metal3-io/cluster-api-provider-metal3@v%s"
27+ releaseMarkerPrefixIPAM = "go://github.com/metal3-io/ip-address-manager@v%s"
2628)
2729
2830var (
3638 k8sVersion string
3739)
3840
39- var _ = Describe ("When testing cluster upgrade from releases (v1.9 =>current) [clusterctl-upgrade]" , func () {
41+ var _ = Describe ("When testing cluster upgrade from releases (v1.10 =>current) [clusterctl-upgrade]" , func () {
4042 BeforeEach (func () {
4143 k8sVersion = "v1.33.0"
4244 validateGlobals (specName )
@@ -46,15 +48,17 @@ var _ = Describe("When testing cluster upgrade from releases (v1.9=>current) [cl
4648 clusterctlLogFolder = filepath .Join (artifactFolder , bootstrapClusterProxy .GetName ())
4749 })
4850
49- minorVersion := "1.9 "
50- bmoFromRelease := "0.9 "
51- ironicFromRelease := "27 .0"
51+ minorVersion := "1.10 "
52+ bmoFromRelease := "0.10 "
53+ ironicFromRelease := "29 .0"
5254 bmoToRelease := "latest"
5355 ironicToRelease := "latest"
5456 capiStableRelease , err := capi_e2e .GetStableReleaseOfMinor (ctx , minorVersion )
5557 Expect (err ).ToNot (HaveOccurred (), "Failed to get stable version for CAPI minor release : %s" , minorVersion )
56- capm3StableRelease , err := GetCAPM3StableReleaseOfMinor (ctx , minorVersion )
58+ capm3StableRelease , err := GetStableReleaseOfMinor (ctx , releaseMarkerPrefixCAPM3 , minorVersion )
5759 Expect (err ).ToNot (HaveOccurred (), "Failed to get stable version for CAPM3 minor release : %s" , minorVersion )
60+ ipamStableRelease , err := GetStableReleaseOfMinor (ctx , releaseMarkerPrefixIPAM , minorVersion )
61+ Expect (err ).ToNot (HaveOccurred (), "Failed to get stable version for IPAM minor release : %s" , minorVersion )
5862
5963 capi_e2e .ClusterctlUpgradeSpec (ctx , func () capi_e2e.ClusterctlUpgradeSpecInput {
6064 return capi_e2e.ClusterctlUpgradeSpecInput {
@@ -67,7 +71,7 @@ var _ = Describe("When testing cluster upgrade from releases (v1.9=>current) [cl
6771 InitWithBootstrapProviders : []string {fmt .Sprintf (providerKubeadmPrefix , capiStableRelease )},
6872 InitWithControlPlaneProviders : []string {fmt .Sprintf (providerKubeadmPrefix , capiStableRelease )},
6973 InitWithInfrastructureProviders : []string {fmt .Sprintf (providerMetal3Prefix , capm3StableRelease )},
70- InitWithIPAMProviders : []string {"" }, // Explicitly set to empty since we use the IPAM bundled with CAPM3.
74+ InitWithIPAMProviders : []string {fmt . Sprintf ( providerMetal3Prefix , ipamStableRelease )},
7175 InitWithKubernetesVersion : k8sVersion ,
7276 WorkloadKubernetesVersion : k8sVersion ,
7377 InitWithBinary : fmt .Sprintf (clusterctlDownloadURL , capiStableRelease ),
@@ -82,9 +86,6 @@ var _ = Describe("When testing cluster upgrade from releases (v1.9=>current) [cl
8286 PreUpgrade : func (clusterProxy framework.ClusterProxy ) {
8387 preUpgrade (clusterProxy , bmoToRelease , ironicToRelease )
8488 },
85- PostUpgrade : func (clusterProxy framework.ClusterProxy , _ string , _ string ) {
86- postUpgrade (ctx , clusterProxy )
87- },
8889 PreCleanupManagementCluster : func (clusterProxy framework.ClusterProxy ) {
8990 preCleanupManagementCluster (clusterProxy , ironicToRelease )
9091 },
@@ -94,24 +95,24 @@ var _ = Describe("When testing cluster upgrade from releases (v1.9=>current) [cl
9495 })
9596})
9697
97- var _ = Describe ("When testing cluster upgrade from releases (v1.8 =>current) [clusterctl-upgrade]" , func () {
98+ var _ = Describe ("When testing cluster upgrade from releases (v1.9 =>current) [clusterctl-upgrade]" , func () {
9899 BeforeEach (func () {
99- k8sVersion = "v1.31.2 "
100+ k8sVersion = "v1.33.0 "
100101 validateGlobals (specName )
101102 imageURL , imageChecksum := EnsureImage (k8sVersion )
102103 os .Setenv ("IMAGE_RAW_CHECKSUM" , imageChecksum )
103104 os .Setenv ("IMAGE_RAW_URL" , imageURL )
104105 clusterctlLogFolder = filepath .Join (artifactFolder , bootstrapClusterProxy .GetName ())
105106 })
106107
107- minorVersion := "1.8 "
108- bmoFromRelease := "0.8 "
109- ironicFromRelease := "26 .0"
108+ minorVersion := "1.9 "
109+ bmoFromRelease := "0.9 "
110+ ironicFromRelease := "27 .0"
110111 bmoToRelease := "latest"
111112 ironicToRelease := "latest"
112113 capiStableRelease , err := capi_e2e .GetStableReleaseOfMinor (ctx , minorVersion )
113114 Expect (err ).ToNot (HaveOccurred (), "Failed to get stable version for CAPI minor release : %s" , minorVersion )
114- capm3StableRelease , err := GetCAPM3StableReleaseOfMinor (ctx , minorVersion )
115+ capm3StableRelease , err := GetStableReleaseOfMinor (ctx , releaseMarkerPrefixCAPM3 , minorVersion )
115116 Expect (err ).ToNot (HaveOccurred (), "Failed to get stable version for CAPM3 minor release : %s" , minorVersion )
116117
117118 capi_e2e .ClusterctlUpgradeSpec (ctx , func () capi_e2e.ClusterctlUpgradeSpecInput {
0 commit comments