mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-13 21:34:40 +03:00
Support project using alternates names for arch
(the url should use `alt_arch` instead of `arch` for those)
This commit is contained in:
@@ -89,6 +89,14 @@ downloads = {
|
|||||||
'graphql_id': "R_kgDOApOQGQ"
|
'graphql_id': "R_kgDOApOQGQ"
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
arch_alt_name = {
|
||||||
|
"amd64": "x86_64",
|
||||||
|
"arm64": "aarch64",
|
||||||
|
"ppc64le": None,
|
||||||
|
"arm": None,
|
||||||
|
}
|
||||||
|
|
||||||
# TODO: downloads not supported
|
# TODO: downloads not supported
|
||||||
# youki: no checkusms in releases
|
# youki: no checkusms in releases
|
||||||
# kata: no checksums in releases
|
# kata: no checksums in releases
|
||||||
@@ -214,7 +222,8 @@ def download_hash(only_downloads: [str]) -> None:
|
|||||||
downloads[component]['url'].format(
|
downloads[component]['url'].format(
|
||||||
version = version,
|
version = version,
|
||||||
os = "linux",
|
os = "linux",
|
||||||
arch = arch
|
arch = arch,
|
||||||
|
alt_arch = arch_alt_name[arch],
|
||||||
),
|
),
|
||||||
allow_redirects=True)
|
allow_redirects=True)
|
||||||
hash_file.raise_for_status()
|
hash_file.raise_for_status()
|
||||||
|
|||||||
Reference in New Issue
Block a user