You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/release/release-tasks.md
+6-8
Original file line number
Diff line number
Diff line change
@@ -97,8 +97,10 @@ is used for e.g. local development and e2e tests. We also modify tests so that t
97
97
This comes down to changing occurrences of the old version to the new version, e.g. `v1.5` to `v1.6`:
98
98
99
99
1. Setup E2E tests for the new release:
100
-
1. Goal is that we have clusterctl upgrade tests for the latest stable versions of each contract / for each supported branch. For `v1.6` this means:
101
-
* v1beta1: `v1.0`, `v1.4`, `v1.5` (will change with each new release)
100
+
1. Goal is that we have clusterctl upgrade tests for all relevant upgrade cases
101
+
1. Modify the test specs in `test/e2e/clusterctl_upgrade_test.go`. Please note the comments above each test case (look for `This test should be changed during "prepare main branch"`)
102
+
Please note that both `InitWithKubernetesVersion` and `WorkloadKubernetesVersion` should be the highest management cluster version supported by the respective Cluster API version.
103
+
2. Please ping maintainers after these changes are made for a first round of feedback before continuing with the steps below.
102
104
2. Update providers in `docker.yaml`:
103
105
1. Add a new `v1.6.0` entry.
104
106
2. Remove providers that are not used anymore in clusterctl upgrade tests.
@@ -112,17 +114,13 @@ This comes down to changing occurrences of the old version to the new version, e
112
114
4. Adjust cluster templates in `test/e2e/data/infrastructure-docker`:
113
115
1. Create a new `v1.6` folder. It should be created based on the `main` folder and only contain the templates we use in the clusterctl upgrade tests (as of today `cluster-template` and `cluster-template-topology`).
114
116
2. Remove old folders that are not used anymore in clusterctl upgrade tests.
115
-
5. Modify the test specs in `test/e2e/clusterctl_upgrade_test.go` (according to the versions we want to test described above).
116
-
Please note that both `InitWithKubernetesVersion` and `WorkloadKubernetesVersion` should be the highest mgmt cluster version supported by the respective Cluster API version.
117
+
5. Add a new Makefile target (e.g. `generate-e2e-templates-v1.6`) and potentially remove the Makefile target of versions that are not used anymore (if something was removed in 4.2)
117
118
2. Update `create-local-repository.py` and `tools/internal/tilt-prepare/main.go`: `v1.5.99` => `v1.6.99`.
118
119
3. Make sure all tests are green (also run `pull-cluster-api-e2e-full-main` and `pull-cluster-api-e2e-workload-upgrade-1-27-latest-main`).
119
-
4. Remove an unsupported release version of Cluster API from the Makefile target that generates e2e templates. For example, remove `v1.3` while working on `v1.6`.
// Note: Both InitWithKubernetesVersion and WorkloadKubernetesVersion should be the highest mgmt cluster version supported by the source Cluster API version.
240
-
InitWithKubernetesVersion: "v1.29.0",
241
-
WorkloadKubernetesVersion: "v1.29.0",
244
+
InitWithKubernetesVersion: "v1.30.0",
245
+
WorkloadKubernetesVersion: "v1.30.0",
242
246
MgmtFlavor: "topology",
243
247
WorkloadFlavor: "",
244
248
UseKindForManagementCluster: true,
245
249
}
246
250
})
247
251
})
248
252
249
-
var_=Describe("When testing clusterctl upgrades using ClusterClass (v1.6=>current) [ClusterClass]", func() {
250
-
// Get v1.6 latest stable release
251
-
version:="1.6"
253
+
// Note: This test should be changed during "prepare main branch", it should test n-2 => current.
254
+
var_=Describe("When testing clusterctl upgrades using ClusterClass (v1.7=>current) [ClusterClass]", func() {
// Note: Both InitWithKubernetesVersion and WorkloadKubernetesVersion should be the highest mgmt cluster version supported by the source Cluster API version.
// Note: Both InitWithKubernetesVersion and WorkloadKubernetesVersion should be the highest mgmt cluster version supported by the source Cluster API version.
296
-
InitWithKubernetesVersion: "v1.30.0",
297
-
WorkloadKubernetesVersion: "v1.30.0",
302
+
InitWithKubernetesVersion: "v1.31.0",
303
+
WorkloadKubernetesVersion: "v1.31.0",
298
304
MgmtFlavor: "topology",
299
305
WorkloadFlavor: "",
300
306
UseKindForManagementCluster: true,
301
307
}
302
308
})
303
309
})
304
310
305
-
var_=Describe("When testing clusterctl upgrades using ClusterClass (v1.7=>current) [ClusterClass]", func() {
306
-
// Get v1.7 latest stable release
307
-
version:="1.7"
311
+
// Note: This test should be changed during "prepare main branch", it should test n-1 => current.
312
+
var_=Describe("When testing clusterctl upgrades using ClusterClass (v1.8=>current) [ClusterClass]", func() {
// Note: Both InitWithKubernetesVersion and WorkloadKubernetesVersion should be the highest mgmt cluster version supported by the source Cluster API version.
321
-
InitWithKubernetesVersion: "v1.30.0",
322
-
WorkloadKubernetesVersion: "v1.30.0",
328
+
InitWithKubernetesVersion: "v1.31.0",
329
+
WorkloadKubernetesVersion: "v1.31.0",
323
330
MgmtFlavor: "topology",
324
331
WorkloadFlavor: "topology",
325
332
UseKindForManagementCluster: true,
326
333
}
327
334
})
328
335
})
329
336
330
-
var_=Describe("When testing clusterctl upgrades using ClusterClass (v1.7=>current) on K8S latest ci mgmt cluster [ClusterClass]", func() {
331
-
// Get v1.7 latest stable release
332
-
version:="1.7"
337
+
// Note: This test should be changed during "prepare main branch", it should test n-1 => current.
338
+
var_=Describe("When testing clusterctl upgrades using ClusterClass (v1.8=>current) on K8S latest ci mgmt cluster [ClusterClass]", func() {
Copy file name to clipboardExpand all lines: test/e2e/config/docker.yaml
+47-8
Original file line number
Diff line number
Diff line change
@@ -85,11 +85,20 @@ providers:
85
85
type: "url"
86
86
contract: v1beta1
87
87
replacements:
88
-
- old: --metrics-addr=127.0.0.1:8080
89
-
new: --metrics-addr=:8080
88
+
- old: --metrics-addr=127.0.0.1:8080
89
+
new: --metrics-addr=:8080
90
90
files:
91
91
- sourcePath: "../data/shared/v1.7/metadata.yaml"
92
-
- name: v1.8.99 # next; use manifest from source files
92
+
- name: "{go://sigs.k8s.io/[email protected]}"# latest published release in the v1beta1 series; this is used for v1beta1 --> main clusterctl upgrades test only.
- name: v1.9.99 # next; use manifest from source files
93
102
value: ../../../config/default
94
103
replacements:
95
104
- old: "--leader-elect"
@@ -154,7 +163,16 @@ providers:
154
163
new: --metrics-addr=:8080
155
164
files:
156
165
- sourcePath: "../data/shared/v1.7/metadata.yaml"
157
-
- name: v1.8.99 # next; use manifest from source files
166
+
- name: "{go://sigs.k8s.io/[email protected]}"# latest published release in the v1beta1 series; this is used for v1beta1 --> main clusterctl upgrades test only.
- name: v1.9.99 # next; use manifest from source files
158
176
value: ../../../bootstrap/kubeadm/config/default
159
177
replacements:
160
178
- old: "--leader-elect"
@@ -219,7 +237,16 @@ providers:
219
237
new: --metrics-addr=:8080
220
238
files:
221
239
- sourcePath: "../data/shared/v1.7/metadata.yaml"
222
-
- name: v1.8.99 # next; use manifest from source files
240
+
- name: "{go://sigs.k8s.io/[email protected]}"# latest published release in the v1beta1 series; this is used for v1beta1 --> main clusterctl upgrades test only.
- name: v1.8.99 # next; use manifest from source files
326
+
- name: "{go://sigs.k8s.io/[email protected]}"# latest published release in the v1beta1 series; this is used for v1beta1 --> main clusterctl upgrades test only.
0 commit comments