Update VERSION_K8S to handle any k3s revision

Co-authored-by: Brad Davidson <brad@oatmail.org>
Signed-off-by: Derek Nola <derek.nola@suse.com>
pull/10780/head
Derek Nola 2024-08-21 15:28:12 -07:00
parent f5c6472b16
commit ebbb109840
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ if [ -z "$VERSION_CRICTL" ]; then
fi
VERSION_K8S_K3S=$(get-module-version k8s.io/kubernetes)
VERSION_K8S=${VERSION_K8S_K3S%"-k3s2"}
VERSION_K8S=${VERSION_K8S_K3S%-k3s*}
if [ -z "$VERSION_K8S" ]; then
VERSION_K8S="v0.0.0"
fi