From 6e248a2c0d263c2f0879a2be8f9c0a8e3a167ccd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Krienb=C3=BChl?= Date: Mon, 2 Jun 2025 13:54:51 +0200 Subject: [PATCH] Switch to a predictable cluster prefix --- helpers/test-matrix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/helpers/test-matrix b/helpers/test-matrix index 213d83f..c4dda20 100755 --- a/helpers/test-matrix +++ b/helpers/test-matrix @@ -7,9 +7,16 @@ ensure-k8test > /dev/null # Returns the matrix entry for the given index (1-n) function matrixentry { + # Kubernetes releases k8test/helpers/release-set --kubernetes=$(( 1 - $1 )) --limit kubernetes | jq -r '.kubernetes.version' + + # The the private subnet range echo "10.100.$1.0/24" - echo "k8test-$(uuidgen | tr '[:upper:]' '[:lower:]' | cut -d '-' -f 1)" + + # A semi-preditable cluster prefix (we want to reuse them across jobs, but + # not inside a job). Reuse allows us to ensure that the cleanup process + # at the beginning of a test will remove old runs. + echo "k8test-matrix-$1" } function matrixobject {