Fix e2e-test-kind: exclude RC tags from kindest/node version filter

The grep filter `grep -v -E "alpha|beta"` was letting through RC tags like
`v1.37.0-rc.1`. The awk command splits on `.` and takes `$NF` as the patch
version, so `v1.37.0-rc.1` becomes `1.37.1` — a version that doesn't exist
on Docker Hub, causing the kind cluster creation to fail with
"manifest for kindest/node:v1.37.1 not found".

Fix: add `rc` to the exclusion filter.

Co-authored-by: Lyndon-Li <98304688+Lyndon-Li@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-08-24 03:44:59 +00:00
committed by GitHub
co-authored by Lyndon-Li
parent 04f278996b
commit 3127731bcc
+1 -1
View File
@@ -99,7 +99,7 @@ jobs:
# awk -F. '{if(!a[$1"."$2]++)print $1"."$2"."$NF}'
run: |
echo "matrix={\
\"k8s\":$(wget -q -O - "https://hub.docker.com/v2/namespaces/kindest/repositories/node/tags?page_size=50" | grep -o '"name": *"[^"]*' | grep -o '[^"]*$' | grep -v -E "alpha|beta" | grep -E "v[1-9]\.(2[5-9]|[3-9][0-9])" | awk -F. '{if(!a[$1"."$2]++)print $1"."$2"."$NF}' | sort -r | sed s/v//g | jq -R -c -s 'split("\n")[:-1]'),\
\"k8s\":$(wget -q -O - "https://hub.docker.com/v2/namespaces/kindest/repositories/node/tags?page_size=50" | grep -o '"name": *"[^"]*' | grep -o '[^"]*$' | grep -v -E "alpha|beta|rc" | grep -E "v[1-9]\.(2[5-9]|[3-9][0-9])" | awk -F. '{if(!a[$1"."$2]++)print $1"."$2"."$NF}' | sort -r | sed s/v//g | jq -R -c -s 'split("\n")[:-1]'),\
\"labels\":[\
\"Basic && (ClusterResource || NodePort || StorageClass)\", \
\"ResourceFiltering && !FSBackup\", \