Skip to content

Commit

Permalink
add kubernetes v1.31 to test matrix (#5587) (#5627)
Browse files Browse the repository at this point in the history
* add kubernetes v1.31 to test matrix

* add 1.31 to buildkite pipeline

(cherry picked from commit 2fecda2)

Co-authored-by: Mauri de Souza Meneguzzo <mauri870@gmail.com>
Co-authored-by: Blake Rouse <blake.rouse@elastic.co>
  • Loading branch information
3 people authored Oct 1, 2024
1 parent 2d484c9 commit 6ee3e85
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .buildkite/integration.pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ steps:
- label: "Kubernetes Integration tests"
key: "k8s-integration-tests"
env:
K8S_VERSION: "v1.30.2"
K8S_VERSION: "v1.31.0"
KIND_VERSION: "v0.20.0"
command: ".buildkite/scripts/steps/k8s-extended-tests.sh"
artifact_paths:
Expand Down
2 changes: 1 addition & 1 deletion .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,10 @@ steps:
matrix:
setup:
k8s_version:
- "1.31.0"
- "1.30.0"
- "1.29.4"
- "1.28.9"
- "1.27.13"
retry:
manual:
allowed: true
Expand Down
2 changes: 1 addition & 1 deletion docs/test-framework-dev-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ between, and it can be very specific or not very specific.
- `TEST_PLATFORMS="linux/amd64/ubuntu/20.04 mage integration:test` to execute tests only on Ubuntu 20.04 ARM64.
- `TEST_PLATFORMS="windows/amd64/2022 mage integration:test` to execute tests only on Windows Server 2022.
- `TEST_PLATFORMS="linux/amd64 windows/amd64/2022 mage integration:test` to execute tests on Linux AMD64 and Windows Server 2022.
- `TEST_PLATFORMS="kubernetes/arm64/1.30.2/wolfi" mage integration:kubernetes` to execute kubernetes tests on Kubernetes version 1.30.2 with wolfi docker variant.
- `TEST_PLATFORMS="kubernetes/arm64/1.31.0/wolfi" mage integration:kubernetes` to execute kubernetes tests on Kubernetes version 1.31.0 with wolfi docker variant.

> **_NOTE:_** This only filters down the tests based on the platform. It will not execute a tests on a platform unless
> the test defines as supporting it.
Expand Down
5 changes: 5 additions & 0 deletions pkg/testing/kubernetes/supported.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ var arches = []string{define.AMD64, define.ARM64}

// versions defines the list of supported version of Kubernetes.
var versions = []define.OS{
// Kubernetes 1.31
{
Type: define.Kubernetes,
Version: "1.31.0",
},
// Kubernetes 1.30
{
Type: define.Kubernetes,
Expand Down

0 comments on commit 6ee3e85

Please sign in to comment.