Skip to content

Commit 0b61de1

Browse files
authored
📖 decouple the support new kubernetes version process from kind releases (#10414)
* github: adjust kubernetes bump template to decouple kind release and kubernetes version support * review fixes * review fixes * review fixes * review fixes
1 parent 858a870 commit 0b61de1

File tree

1 file changed

+35
-21
lines changed

1 file changed

+35
-21
lines changed

‎.github/ISSUE_TEMPLATE/kubernetes_bump.md

+35-21
Original file line numberDiff line numberDiff line change
@@ -11,30 +11,20 @@ This issue is tracking the tasks that should be implemented **after** the Kubern
1111

1212
## Tasks
1313

14-
Prerequisites:
15-
* [ ] Decide which Cluster API release series will support the new Kubernetes version
16-
* If feasible we usually cherry-pick the changes back to the latest release series.
14+
**Note:** If feasible we usually cherry-pick the changes back to the latest release series.
1715

1816
### Supporting managing and running on the new Kubernetes version
1917

2018
This section contains tasks to update our book, e2e testing and CI to use and test the new Kubernetes version
2119
as well as changes to Cluster API that we might have to make to support the new Kubernetes version. All of these
2220
changes should be cherry-picked to all release series that will support the new Kubernetes version.
2321

24-
* [ ] Modify quickstart and CAPD to use the new Kubernetes release:
25-
* Bump the Kubernetes version in:
26-
* `test/*`: search for occurrences of the previous Kubernetes version
27-
* `Tiltfile`
28-
* Ensure the latest available kind version is used (including the latest images for this kind release)
29-
* Add new images in the [kind mapper.go](https://github.com/kubernetes-sigs/cluster-api/blob/0f47a19e038ee6b0d3b1e7675a62cdaf84face8c/test/infrastructure/kind/mapper.go#L79).
30-
* See the [kind releases page](https://github.com/kubernetes-sigs/kind/releases) for the list of released images.
31-
* Set new default image for the [test framework](https://github.com/kubernetes-sigs/cluster-api/blob/0f47a19e038ee6b0d3b1e7675a62cdaf84face8c/test/framework/bootstrap/kind_provider.go#L40)
32-
* If code changes are required for CAPD to incorporate the new Kind version, update [kind latestMode](https://github.com/kubernetes-sigs/cluster-api/blob/0f47a19e038ee6b0d3b1e7675a62cdaf84face8c/test/infrastructure/kind/mapper.go#L66)
33-
* Prior art: #10094
34-
* Verify the quickstart manually
35-
* Bump `InitWithKubernetesVersion` and `WorkloadKubernetesVersion` in `clusterctl_upgrade_test.go`
36-
* Note: Only bump for Cluster API versions that will support the new Kubernetes release.
37-
* Prior art: #9160
22+
* [ ] Continuously modify CAPD to use early versions of the upcoming Kubernetes release (betas and rcs):
23+
* Bump the Kubernetes version in `test/*` except for `test/infrastructure/kind/*`.
24+
* Prior art: #10384
25+
* [ ] Modify CAPD to use the new Kubernetes release after it is GA:
26+
* Bump the Kubernetes version in `test/*` except for `test/infrastructure/kind/*`.
27+
* Prior art: #10454
3828
* [ ] Ensure the jobs are adjusted to provide test coverage according to our [support policy](https://cluster-api.sigs.k8s.io/reference/versions.html#supported-kubernetes-versions):
3929

4030
* At the `.versions` section in the `cluster-api-prowjob-gen.yaml` file in [test-infra](https://github.com/kubernetes/test-infra/blob/master/config/jobs/kubernetes-sigs/cluster-api/):
@@ -55,13 +45,35 @@ changes should be cherry-picked to all release series that will support the new
5545
TEST_INFRA_DIR=../../k8s.io/test-infra make generate-test-infra-prowjobs
5646
```
5747

48+
* Prior art: #32456
49+
5850
* [ ] Update book:
5951
* Update supported versions in `versions.md`
60-
* Prior art: #9161
52+
* Prior art: #10454
53+
6154
* [ ] Issues specific to the Kubernetes minor release:
6255
* Sometimes there are adjustments that we have to make in Cluster API to be able to support
6356
a new Kubernetes minor version. Please add these issues here when they are identified.
6457

58+
### Bump quickstart and kind image references in CAPD
59+
60+
Prerequisites:
61+
62+
* The target Kubernetes version is GA
63+
* There is a new [kind version with/or a new set of kind images](https://github.com/kubernetes-sigs/kind/releases) for the target Kubernetes version
64+
65+
* [ ] Bump quickstart and kind image references in CAPD:
66+
* Bump the Kubernetes version in:
67+
* `docs/*`
68+
* `Tiltfile`
69+
* Bump kind image references in CAPD (and also kind if necessary, including the latest images for this kind release)
70+
* Add new images in the [kind mapper.go](https://github.com/kubernetes-sigs/cluster-api/blob/0f47a19e038ee6b0d3b1e7675a62cdaf84face8c/test/infrastructure/kind/mapper.go#L79).
71+
* See the [kind releases page](https://github.com/kubernetes-sigs/kind/releases) for the list of released images.
72+
* Set new default image for the [test framework](https://github.com/kubernetes-sigs/cluster-api/blob/0f47a19e038ee6b0d3b1e7675a62cdaf84face8c/test/framework/bootstrap/kind_provider.go#L40)
73+
* If code changes are required for CAPD to incorporate the new Kind version, update [kind latestMode](https://github.com/kubernetes-sigs/cluster-api/blob/0f47a19e038ee6b0d3b1e7675a62cdaf84face8c/test/infrastructure/kind/mapper.go#L66)
74+
* Verify the quickstart manually
75+
* Prior art: TODO (previously #9160 and #10094)
76+
6577
### Using new Kubernetes dependencies
6678

6779
This section contains tasks to update Cluster API to use the latest Kubernetes Go dependencies and related topics
@@ -72,17 +84,19 @@ run the Cluster API controllers on the new Kubernetes version.
7284
* [ ] Ensure there is a new controller-runtime minor release which uses the new Kubernetes Go dependencies.
7385
* [ ] Update our Prow jobs for the `main` branch to use the correct `kubekins-e2e` image via the configuration file and by running `make generate-test-infra-prowjobs`.
7486
* It is recommended to have one PR for presubmit and one for periodic jobs to reduce the risk of breaking the periodic jobs.
75-
* Prior art: presubmit jobs: https://github.com/kubernetes/test-infra/pull/27311
76-
* Prior art: periodic jobs: https://github.com/kubernetes/test-infra/pull/27326
87+
* Prior art: https://github.com/kubernetes/test-infra/pull/32380
7788
* [ ] Bump the Go version in Cluster API: (if Kubernetes is using a new Go minor version)
7889
* Search for the currently used Go version across the repository and update it
7990
* We have to at least modify it in: `hack/ensure-go.sh`, `.golangci.yml`, `cloudbuild*.yaml`, `go.mod`, `Makefile`, `netlify.toml`, `Tiltfile`
80-
* Prior art: #7135
91+
* Prior art: #10452
8192
* [ ] Bump controller-runtime
8293
* [ ] Bump controller-tools
8394
* [ ] Bump the Kubernetes version used in integration tests via `KUBEBUILDER_ENVTEST_KUBERNETES_VERSION` in `Makefile`
8495
* **Note**: This PR should be cherry-picked as well. It is part of this section as it depends on kubebuilder/controller-runtime
8596
releases and is not strictly necessary for [Supporting managing and running on the new Kubernetes version](#supporting-managing-and-running-on-the-new-kubernetes-version).
97+
* Prior art to release envtest binaries: https://github.com/kubernetes-sigs/kubebuilder/pull/3864
8698
* Prior art: #7193
8799
* [ ] Bump conversion-gen via `CONVERSION_GEN_VER` in `Makefile`
88100
* Prior art: #7118
101+
102+
After release of CAPI v1.X.x (that supports Kubernetes v1.Y):

0 commit comments

Comments
 (0)