@@ -1253,11 +1253,11 @@ func Test_providerUpgrader_ApplyCustomPlan(t *testing.T) {
1253
1253
WithVersions ("v1.10.0" , "v1.11.0" , "v1.12.0" , "v1.13.0" , "v1.14.0" ).
1254
1254
WithMetadata ("v1.14.0" , & clusterctlv1.Metadata {
1255
1255
ReleaseSeries : []clusterctlv1.ReleaseSeries {
1256
- {Major : 1 , Minor : 10 , Contract : test . PreviousCAPIContractNotSupported },
1257
- {Major : 1 , Minor : 11 , Contract : test . CurrentCAPIContract },
1258
- {Major : 1 , Minor : 12 , Contract : test . CurrentCAPIContract },
1259
- {Major : 1 , Minor : 13 , Contract : test . CurrentCAPIContract },
1260
- {Major : 1 , Minor : 14 , Contract : test . CurrentCAPIContract },
1256
+ {Major : 1 , Minor : 10 , Contract : oldContractVersionNotSupportedAnymore },
1257
+ {Major : 1 , Minor : 11 , Contract : currentContractVersion },
1258
+ {Major : 1 , Minor : 12 , Contract : currentContractVersion },
1259
+ {Major : 1 , Minor : 13 , Contract : currentContractVersion },
1260
+ {Major : 1 , Minor : 14 , Contract : currentContractVersion },
1261
1261
},
1262
1262
}),
1263
1263
},
@@ -1285,18 +1285,18 @@ func Test_providerUpgrader_ApplyCustomPlan(t *testing.T) {
1285
1285
WithVersions ("v1.0.0" ).
1286
1286
WithMetadata ("v1.0.0" , & clusterctlv1.Metadata {
1287
1287
ReleaseSeries : []clusterctlv1.ReleaseSeries {
1288
- {Major : 1 , Minor : 0 , Contract : test . CurrentCAPIContract },
1288
+ {Major : 1 , Minor : 0 , Contract : currentContractVersion },
1289
1289
},
1290
1290
}),
1291
1291
"bootstrap-kubeadm" : repository .NewMemoryRepository ().
1292
1292
WithVersions ("v1.10.0" , "v1.11.0" , "v1.12.0" , "v1.13.0" , "v1.14.0" ).
1293
1293
WithMetadata ("v1.14.0" , & clusterctlv1.Metadata {
1294
1294
ReleaseSeries : []clusterctlv1.ReleaseSeries {
1295
- {Major : 1 , Minor : 10 , Contract : test . PreviousCAPIContractNotSupported },
1296
- {Major : 1 , Minor : 11 , Contract : test . CurrentCAPIContract },
1297
- {Major : 1 , Minor : 12 , Contract : test . CurrentCAPIContract },
1298
- {Major : 1 , Minor : 13 , Contract : test . CurrentCAPIContract },
1299
- {Major : 1 , Minor : 14 , Contract : test . CurrentCAPIContract },
1295
+ {Major : 1 , Minor : 10 , Contract : oldContractVersionNotSupportedAnymore },
1296
+ {Major : 1 , Minor : 11 , Contract : currentContractVersion },
1297
+ {Major : 1 , Minor : 12 , Contract : currentContractVersion },
1298
+ {Major : 1 , Minor : 13 , Contract : currentContractVersion },
1299
+ {Major : 1 , Minor : 14 , Contract : currentContractVersion },
1300
1300
},
1301
1301
}),
1302
1302
},
@@ -1325,18 +1325,18 @@ func Test_providerUpgrader_ApplyCustomPlan(t *testing.T) {
1325
1325
WithVersions ("v1.0.0" ).
1326
1326
WithMetadata ("v1.0.0" , & clusterctlv1.Metadata {
1327
1327
ReleaseSeries : []clusterctlv1.ReleaseSeries {
1328
- {Major : 1 , Minor : 0 , Contract : test . CurrentCAPIContract },
1328
+ {Major : 1 , Minor : 0 , Contract : currentContractVersion },
1329
1329
},
1330
1330
}),
1331
1331
"control-plane-kubeadm" : repository .NewMemoryRepository ().
1332
1332
WithVersions ("v1.10.0" , "v1.11.0" , "v1.12.0" , "v1.13.0" , "v1.14.0" ).
1333
1333
WithMetadata ("v1.14.0" , & clusterctlv1.Metadata {
1334
1334
ReleaseSeries : []clusterctlv1.ReleaseSeries {
1335
- {Major : 1 , Minor : 10 , Contract : test . PreviousCAPIContractNotSupported },
1336
- {Major : 1 , Minor : 11 , Contract : test . CurrentCAPIContract },
1337
- {Major : 1 , Minor : 12 , Contract : test . CurrentCAPIContract },
1338
- {Major : 1 , Minor : 13 , Contract : test . CurrentCAPIContract },
1339
- {Major : 1 , Minor : 14 , Contract : test . CurrentCAPIContract },
1335
+ {Major : 1 , Minor : 10 , Contract : oldContractVersionNotSupportedAnymore },
1336
+ {Major : 1 , Minor : 11 , Contract : currentContractVersion },
1337
+ {Major : 1 , Minor : 12 , Contract : currentContractVersion },
1338
+ {Major : 1 , Minor : 13 , Contract : currentContractVersion },
1339
+ {Major : 1 , Minor : 14 , Contract : currentContractVersion },
1340
1340
},
1341
1341
}),
1342
1342
},
0 commit comments