Skip to content

Commit 2b64f55

Browse files
authored
CLOUDP-301799: bump kubernetes versions (#2161)
* bump kubernetes versions * bump release docs * docs refinements
1 parent 71ae738 commit 2b64f55

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

.github/workflows/test-e2e.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ jobs:
2020
name: Compute Test Matrix
2121
run: |
2222
# Note the use of external single quotes to allow for double quotes at inline YAML array
23-
matrix='["v1.29.12-kind"]'
23+
matrix='["v1.30.10-kind"]'
2424
if [ "${{ github.ref }}" == "refs/heads/main" ];then
25-
matrix='["v1.29.12-kind", "v1.31.4-kind"]'
25+
matrix='["v1.30.10-kind", "v1.32.2-kind"]'
2626
fi
2727
echo "matrix=${matrix}" >> "${GITHUB_OUTPUT}"
2828
cat "${GITHUB_OUTPUT}"

docs/dev/ci.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ Note **Gov e2e tests** are never run on PRs.
7171

7272
The [test-e2e.yml](../../.github/workflows/test-e2e.yml) workflow builds a test image and a bundle before running the tests. It also has to *compute* the version(s) of Kubernetes to test against. The Kubernetes version in PRs is set purposefully to the oldest kubernetes version. On scheduled nightly runs we test on both the latest and oldest supported versions.
7373

74+
##### Kubernetes Version Matrix
75+
7476
The version list selection is done by parameterising the kind image tag within the **strategy** **matrix** at the [test-e2e](../../.github/workflows/test-e2e.yml) workflow. Eg:
7577

7678
```yaml
@@ -102,6 +104,12 @@ The version list selection is done by parameterising the kind image tag within t
102104
...
103105
```
104106

107+
Adjust the `matrix` variable in the above workflow to match the desired Kubernetes versions. It migh also be necessary to bump the `kind` version and the `kind-action` version in various workflows, see https://github.com/mongodb/mongodb-atlas-kubernetes/pull/2082 as an example.
108+
109+
Additionally, adjust the `ENVTEST_K8S_VERSION` variable in the `Makefile` as well.
110+
111+
Finally, adjust the minimum Kubernetes version ("1.27.1" in the above example) in the [Atlas Kubernetes CLI repository](https://github.com/mongodb/atlas-cli-plugin-kubernetes] plugin) as well. Here, a Kubernetes cluster is being created for e2e tests programmatically. Bump and adjust the Kubernetes version in its `go.mod` file: https://github.com/mongodb/atlas-cli-plugin-kubernetes/blob/d34c4b18930b0cd77dc6013d52669161edb224d5/go.mod#L32 for the kind version and https://github.com/mongodb/atlas-cli-plugin-kubernetes/blob/d5b2610dd50e312e315b63d1bfd0d7dde244b262/test/e2e/operator_helper_test.go#L91-L98 for the actual Kubernetes version.
112+
105113
### Test Variants
106114

107115
- **PRs**:

docs/dev/release.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,13 @@ Most tools are automatically installed for you. Most of them are Go binaries and
1717
- [devbox](https://www.jetify.com/devbox) to be able to enter a sandbox development environment that includes necessary tools for the release process.
1818
- [Docker](https://www.docker.com/) to be able to deal with containers.
1919

20-
## Before starting the Release
20+
## Release preparations (minimum n-1 weeks before the actual release)
21+
22+
At least **one** (1) week before the release the Kubernetes Version testing matrix has to be updated both in this repository and the CLI repository https://github.com/mongodb/mongodb-atlas-cli.
23+
24+
Please refer to the [CI documentation](ci.md#kubernetes-version-matrix) and submit a pull request, example: https://github.com/mongodb/mongodb-atlas-kubernetes/pull/2161 or https://github.com/mongodb/mongodb-atlas-kubernetes/pull/2082.
25+
26+
## Release Notes
2127

2228
- Create a draft of the release notes in a Google Document and share with Product and the Docs team.
2329
- Ensure as well that supporting documents for new features are in review.

0 commit comments

Comments
 (0)