From 7e1054ec8ef5692708ea0e07b0a7053945195878 Mon Sep 17 00:00:00 2001 From: Derek Nola Date: Wed, 21 Aug 2024 15:28:12 -0700 Subject: [PATCH] Update VERSION_K8S to handle any k3s revision Co-authored-by: Brad Davidson Signed-off-by: Derek Nola (cherry picked from commit ebbb109840a7c738992e10f9ec8d92b61452ff95) Signed-off-by: Brooks Newberry --- scripts/version.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/version.sh b/scripts/version.sh index b32ccf5f41c3..cffaa0346f74 100755 --- a/scripts/version.sh +++ b/scripts/version.sh @@ -43,7 +43,7 @@ if [ -z "$VERSION_CRICTL" ]; then fi VERSION_K8S_K3S=$(get-module-version k8s.io/kubernetes) -VERSION_K8S=${VERSION_K8S_K3S%"-k3s1"} +VERSION_K8S=${VERSION_K8S_K3S%-k3s*} if [ -z "$VERSION_K8S" ]; then VERSION_K8S="v0.0.0" fi