Skip to content

Commit bc422fd

Browse files
committed
[SPARK-49516] Upgrade the minimum K8s version to v1.28
### What changes were proposed in this pull request? This PR aims to upgrade the minimum K8s version to v1.28. - This is aligned with apache/spark#47990 . In addition, this PR renames the test matrix names to use `hypen` instead of `underscore`. - `kubernetes_version` -> `kubernetes-version` - `test_group` -> `test-group` - `dynamic_config_test_group` -> `dynamic-config-test-group` ### Why are the changes needed? **1. K8s community archived v1.27.19 on 2024-07-16 and starts to release v1.31.0 from 2024-08-13** - https://kubernetes.io/releases/#release-v1-31 - https://kubernetes.io/releases/patch-releases/#non-active-branch-history **2. Default K8s Versions in Public Cloud environments** The default K8s versions of public cloud providers are already moving to K8s 1.30 like the following. - EKS: v1.30 (Default) - GKE: v1.30 (Rapid), v1.29 (Regular), v1.29 (Stable) - AKS: v1.29 (Default), v1.30 (Support) **3. End Of Support** In addition, K8s 1.27 reached or will reach a standard support EOL in two weeks before the official Apache Spark Kubernetes Operator release. | K8s | EKS | AKS | GKE | | ---- | ------- | ------- | ------- | | 1.27 | 2024-07 | 2024-07 | 2024-09-16 | - [EKS EOL Schedule](https://docs.aws.amazon.com/eks/latest/userguide/kubernetes-versions.html#kubernetes-release-calendar) - [AKS EOL Schedule](https://docs.microsoft.com/en-us/azure/aks/supported-kubernetes-versions?tabs=azure-cli#aks-kubernetes-release-calendar) - [GKE EOL Schedule](https://cloud.google.com/kubernetes-engine/docs/release-schedule) ### Does this PR introduce _any_ user-facing change? No. This is a test infra change. ### How was this patch tested? Pass the CIs. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #117 from dongjoon-hyun/SPARK-49516. Authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
1 parent cf25ecf commit bc422fd

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/build_and_test.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,14 @@ jobs:
6666
strategy:
6767
fail-fast: false
6868
matrix:
69-
kubernetes_version:
70-
- "1.27.0"
69+
kubernetes-version:
70+
- "1.28.0"
7171
- "1.31.0"
72-
test_group:
72+
test-group:
7373
- spark-versions
7474
- python
7575
- state-transition
76-
dynamic_config_test_group:
76+
dynamic-config-test-group:
7777
- watched-namespaces
7878
steps:
7979
- name: Checkout repository
@@ -88,7 +88,7 @@ jobs:
8888
uses: medyagh/[email protected]
8989
with:
9090
cache: true
91-
kubernetes-version: ${{ matrix.kubernetes_version }}
91+
kubernetes-version: ${{ matrix.kubernetes-version }}
9292
cpus: 2
9393
memory: 6144m
9494
- name: Set Up Go
@@ -112,7 +112,7 @@ jobs:
112112
minikube docker-env --unset
113113
- name: Run E2E Test with Dynamic Configuration Disabled
114114
run: |
115-
chainsaw test --test-dir ./tests/e2e/${{ matrix.test_group }} --parallel 2
115+
chainsaw test --test-dir ./tests/e2e/${{ matrix.test-group }} --parallel 2
116116
- name: Run Spark K8s Operator on K8S with Dynamic Configuration Enabled
117117
run: |
118118
helm uninstall spark-kubernetes-operator
@@ -124,7 +124,7 @@ jobs:
124124
minikube docker-env --unset
125125
- name: Run E2E Test with Dynamic Configuration Enabled
126126
run: |
127-
chainsaw test --test-dir ./tests/e2e/${{ matrix.dynamic_config_test_group }} --parallel 2
127+
chainsaw test --test-dir ./tests/e2e/${{ matrix.dynamic-config-test-group }} --parallel 2
128128
129129
lint:
130130
name: "Linter and documentation"

0 commit comments

Comments
 (0)