Skip to content

Commit fcd75ba

Browse files
authored
update k8s test versions (#810)
1 parent cba7689 commit fcd75ba

File tree

5 files changed

+9
-15
lines changed

5 files changed

+9
-15
lines changed

.github/workflows/build-and-test.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ jobs:
168168
runs-on: ubuntu-20.04
169169
strategy:
170170
matrix:
171-
k8sVersion: ["1.18", "1.19", "1.20", "1.21", "1.22", "1.23", "1.24", "1.25"]
171+
k8sVersion: ["1.22", "1.23", "1.24", "1.25", "1.26"]
172172
steps:
173173
- name: Set up Go 1.x
174174
uses: actions/setup-go@v2

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<p>
66
<a href="https://github.com/kubernetes/kubernetes/releases">
7-
<img src="https://img.shields.io/badge/Kubernetes-%3E%3D%201.18-brightgreen" alt="kubernetes">
7+
<img src="https://img.shields.io/badge/Kubernetes-%3E%3D%201.22-brightgreen" alt="kubernetes">
88
</a>
99
<a href="https://golang.org/doc/go1.19">
1010
<img src="https://img.shields.io/github/go-mod/go-version/aws/aws-node-termination-handler?color=blueviolet" alt="go-version">

test/k8s-compatibility-test/run-k8s-compatibility-test.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
set -euo pipefail
33

44
SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
5-
versions=("1.23" "1.22" "1.21" "1.20" "1.19" "1.18")
5+
versions=("1.26" "1.25" "1.24" "1.23" "1.22")
66
E_CODE=0
77
AFTER_FIRST_RUN_ARGS=""
88
PASS_THRU_ARGS=""
99

1010
USAGE=$(cat << 'EOM'
1111
Usage: run-k8s-compatability-test [-h]
12-
Executes the spot termination integration test for each version of kubernetes (k8s 1.18 - 1.23 supported)
12+
Executes the spot termination integration test for each version of kubernetes (k8s 1.22 - 1.26 supported)
1313
1414
Examples:
1515
# run test with direct download of go modules

test/k8s-local-cluster-test/provision-cluster

+3-9
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ OVERRIDE_PATH=0
99
KIND_CONFIG_FILE=$SCRIPTPATH/kind-three-node-cluster.yaml
1010
use_psp=false
1111

12+
# shellcheck disable=SC2034
13+
K8_1_26="kindest/node:v1.26.3@sha256:94eb63275ad6305210041cdb5aca87c8562cc50fa152dbec3fef8c58479db4ff"
1214
# shellcheck disable=SC2034
1315
K8_1_25="kindest/node:v1.25.3@sha256:f1de3b0670462f43280114eccceab8bf1b9576d2afe0582f8f74529da6fd0365"
1416
# shellcheck disable=SC2034
@@ -17,16 +19,8 @@ K8_1_24="kindest/node:v1.24.7@sha256:5c015142d9b60a0f6c45573f809957076514e38ec97
1719
K8_1_23="kindest/node:v1.23.5@sha256:1a72748086bc24ed6163de1d1e33cc0e2eb5a1eb5ebffdb15b53c3bcd5376a6f"
1820
# shellcheck disable=SC2034
1921
K8_1_22="kindest/node:v1.22.2@sha256:f638a08c1f68fe2a99e724ace6df233a546eaf6713019a0b310130a4f91ebe7f"
20-
# shellcheck disable=SC2034
21-
K8_1_21="kindest/node:v1.21.2@sha256:9d07ff05e4afefbba983fac311807b3c17a5f36e7061f6cb7e2ba756255b2be4"
22-
# shellcheck disable=SC2034
23-
K8_1_20="kindest/node:v1.20.70@sha256:cbeaf907fc78ac97ce7b625e4bf0de16e3ea725daf6b04f930bd14c67c671ff9"
24-
# shellcheck disable=SC2034
25-
K8_1_19="kindest/node:v1.19.11@sha256:07db187ae84b4b7de440a73886f008cf903fcf5764ba8106a9fd5243d6f32729"
26-
# shellcheck disable=SC2034
27-
K8_1_18="kindest/node:v1.18.19@sha256:7af1492e19b3192a79f606e43c35fb741e520d195f96399284515f077b3b622c"
2822

29-
K8_VERSION="$K8_1_20"
23+
K8_VERSION="$K8_1_22"
3024
KUBECTL_VERSION=$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)
3125
KIND_VERSION="0.17.0"
3226
HELM_VERSION="3.10.0"

test/k8s-local-cluster-test/run-test

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ NODE_TERMINATION_HANDLER_DOCKER_IMG=""
1616
DEFAULT_WEBHOOK_DOCKER_IMG="webhook-test-proxy:customtest"
1717
WEBHOOK_DOCKER_IMG=""
1818
OVERRIDE_PATH=0
19-
K8S_VERSION="1.20"
19+
K8S_VERSION="1.22"
2020
AEMM_URL="amazon-ec2-metadata-mock-service.default.svc.cluster.local"
2121
AEMM_VERSION="1.8.1"
2222
AEMM_DL_URL="https://github.com/aws/amazon-ec2-metadata-mock/releases/download/v$AEMM_VERSION/amazon-ec2-metadata-mock-$AEMM_VERSION.tgz"
@@ -136,7 +136,7 @@ USAGE=$(cat << 'EOM'
136136
-n Node Termination Handler Docker Image
137137
-d use GOPROXY=direct to bypass proxy.golang.org
138138
-o Override path w/ your own kubectl and kind binaries
139-
-v Kubernetes Version (Default: 1.20) [1.18, 1.19, 1.20, 1.21, 1.22, 1.23, 1.24, and 1.25]
139+
-v Kubernetes Version (Default: 1.22) [1.22, 1.23, 1.24, 1.25, and 1.26]
140140
-w Webhook Docker Image
141141
142142
EOM

0 commit comments

Comments
 (0)