Skip to content

Commit 64d4f57

Browse files
Upgrade k8s versions (#1261)
Co-authored-by: ec2-bot 🤖 <ec2-bot@users.noreply.github.com>
1 parent 77ca841 commit 64d4f57

7 files changed

Lines changed: 17 additions & 17 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ jobs:
194194
runs-on: ubuntu-24.04
195195
strategy:
196196
matrix:
197-
k8sVersion: ["1.29", "1.30", "1.31", "1.32"]
197+
k8sVersion: ["1.32", "1.33", "1.34", "1.35"]
198198
steps:
199199
- name: Set up Go 1.x
200200
uses: actions/setup-go@v2

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ WINDOWS_2022 ?= "windows-10.0.20348.2582/amd64"
2929
BINARY_NAME ?= "node-termination-handler"
3030
THIRD_PARTY_LICENSES = "${MAKEFILE_PATH}/THIRD_PARTY_LICENSES.md"
3131
GOLICENSES = $(BIN_DIR)/go-licenses
32-
K8S_1_29_ASSET_SUFFIX = "_k8s-1-29-or-newer"
32+
K8S_1_32_ASSET_SUFFIX = "_k8s-1-32-or-newer"
3333
AMAZON_ECR_CREDENTIAL_HELPER_VERSION = 0.7.1
3434

3535
$(shell mkdir -p ${BUILD_DIR_PATH} && touch ${BUILD_DIR_PATH}/_go.mod)
@@ -141,14 +141,14 @@ build-binaries-windows-2022:
141141

142142
upload-resources-to-github:
143143
${MAKEFILE_PATH}/scripts/upload-resources-to-github
144-
${MAKEFILE_PATH}/scripts/upload-resources-to-github -k -s ${K8S_1_29_ASSET_SUFFIX}
144+
${MAKEFILE_PATH}/scripts/upload-resources-to-github -k -s ${K8S_1_32_ASSET_SUFFIX}
145145

146146
upload-resources-to-github-windows:
147147
powershell -File ${MAKEFILE_PATH}/scripts/upload-resources-to-github-windows.ps1 -BinariesOnly
148148

149149
generate-k8s-yaml:
150150
${MAKEFILE_PATH}/scripts/generate-k8s-yaml
151-
${MAKEFILE_PATH}/scripts/generate-k8s-yaml -k "1.32.2" -s ${K8S_1_29_ASSET_SUFFIX}
151+
${MAKEFILE_PATH}/scripts/generate-k8s-yaml -k "1.35.0" -s ${K8S_1_32_ASSET_SUFFIX}
152152

153153
sync-readme-to-ecr-public:
154154
@ECR_REGISTRY=${ECR_REGISTRY} ${MAKEFILE_PATH}/scripts/ecr-public-login

scripts/generate-k8s-yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ BUILD_DIR=$SCRIPTPATH/../build/k8s-resources/$VERSION
99
PLATFORM=$(uname | tr '[:upper:]' '[:lower:]')
1010
HELM_VERSION="3.17.1"
1111
NAMESPACE="kube-system"
12-
K8S_VERSION="1.32.2"
12+
K8S_VERSION="1.35.0"
1313
SUFFIX=""
1414

1515
USAGE=$(cat << EOM

test/eks-cluster-test/cluster-spec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ kind: ClusterConfig
44
metadata:
55
name: nth-eks-cluster-test
66
region: us-west-2
7-
version: '1.27'
7+
version: '1.32'
88
cloudWatch:
99
clusterLogging:
1010
enableTypes: ["*"]

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

Lines changed: 2 additions & 2 deletions
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.29" "1.30" "1.31" "1.32")
5+
versions=("1.32" "1.33" "1.34" "1.35")
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.29 - 1.32 supported)
12+
Executes the spot termination integration test for each version of kubernetes (k8s 1.32 - 1.35 supported)
1313
1414
Examples:
1515
# run test with direct download of go modules

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ OVERRIDE_PATH=0
99
KIND_CONFIG_FILE=$SCRIPTPATH/kind-three-node-cluster.yaml
1010
use_psp=false
1111
# shellcheck disable=SC2034
12-
K8_1_32="kindest/node:v1.32.2@sha256:f226345927d7e348497136874b6d207e0b32cc52154ad8323129352923a3142f"
12+
K8_1_35="kindest/node:v1.35.0@sha256:452d707d4862f52530247495d180205e029056831160e22870e37e3f6c1ac31f"
1313
# shellcheck disable=SC2034
14-
K8_1_31="kindest/node:v1.31.2@sha256:18fbefc20a7113353c7b75b5c869d7145a6abd6269154825872dc59c1329912e"
14+
K8_1_34="kindest/node:v1.34.3@sha256:08497ee19eace7b4b5348db5c6a1591d7752b164530a36f855cb0f2bdcbadd48"
1515
# shellcheck disable=SC2034
16-
K8_1_30="kindest/node:v1.30@sha256:047357ac0cfea04663786a612ba1eaba9702bef25227a794b52890dd8bcd692e"
16+
K8_1_33="kindest/node:v1.33.7@sha256:d26ef333bdb2cbe9862a0f7c3803ecc7b4303d8cea8e814b481b09949d353040"
1717
# shellcheck disable=SC2034
18-
K8_1_29="kindest/node:v1.29.2@sha256:51a1434a5397193442f0be2a297b488b6c919ce8a3931be0ce822606ea5ca245"
18+
K8_1_32="kindest/node:v1.32.11@sha256:5fc52d52a7b9574015299724bd68f183702956aa4a2116ae75a63cb574b35af8"
1919

20-
K8_VERSION="$K8_1_32"
20+
K8_VERSION="$K8_1_35"
2121
KUBECTL_VERSION=$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)
22-
KIND_VERSION="0.27.0"
22+
KIND_VERSION="0.31.0"
2323
HELM_VERSION="3.17.1"
2424

2525
echoerr() { echo "$@" 1>&2; }
@@ -29,7 +29,7 @@ USAGE=$(cat << 'EOM'
2929
Executes the spot termination integration test for the Node Termination Handler.
3030
Outputs the cluster context directory to stdout on successful completion
3131
32-
Example: provision-cluster -b my-test -i 123 -v 1.32
32+
Example: provision-cluster -b my-test -i 123 -v 1.35
3333
3434
Optional:
3535
-b Base Name of cluster

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

Lines changed: 2 additions & 2 deletions
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.32"
19+
K8S_VERSION="1.35"
2020
AEMM_URL="amazon-ec2-metadata-mock-service.default.svc.cluster.local"
2121
AEMM_VERSION="1.12.0"
2222
AEMM_DL_URL="https://github.com/aws/amazon-ec2-metadata-mock/releases/download/v$AEMM_VERSION/amazon-ec2-metadata-mock-$AEMM_VERSION.tgz"
@@ -139,7 +139,7 @@ USAGE=$(cat << 'EOM'
139139
-n Node Termination Handler Docker Image
140140
-d use GOPROXY=direct to bypass proxy.golang.org
141141
-o Override path w/ your own kubectl and kind binaries
142-
-v Kubernetes Version (Default: 1.32) [1.29, 1.30, 1.31 and 1.32]
142+
-v Kubernetes Version (Default: 1.35) [1.32, 1.33, 1.34 and 1.35]
143143
-w Webhook Docker Image
144144
145145
EOM

0 commit comments

Comments
 (0)