kata-manager: Support xz and zst suffixes for the kata tarball

We moved to `.zst`, but users still use the upstream kata-manager to
download older versions of the project, thus we need to support both
suffixes.

Fixes: #11714

Signed-off-by: Fabiano Fidêncio <fidencio@northflank.com>
This commit is contained in:
Fabiano Fidêncio
2025-08-25 13:44:31 +02:00
committed by Fabiano Fidêncio
parent 687d0bf94a
commit 63f6dcdeb9

View File

@@ -219,7 +219,7 @@ github_get_release_file_url()
case "$url" in
*kata*)
regex="kata-static-${version}-${arch_regex}.tar.zst" ;;
regex="kata-static-${version}-${arch_regex}.tar.(xz|zst)" ;;
*nerdctl*)
# Keep this *always* before the containerd check, as it comes from
# the very same containerd organisation on GitHub.