Skip to content

Commit

Permalink
Update VERSION_K8S to handle any k3s revision
Browse files Browse the repository at this point in the history
Co-authored-by: Brad Davidson <brad@oatmail.org>
Signed-off-by: Derek Nola <derek.nola@suse.com>
(cherry picked from commit ebbb109)
Signed-off-by: Brooks Newberry <brooks@newberry.com>
  • Loading branch information
2 people authored and brooksn committed Sep 17, 2024
1 parent 2cdbf12 commit 2383d1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2383d1a

Please sign in to comment.