Skip to content

Commit 3f731f4

Browse files
alexveeclealexpdp7
authored andcommitted
Package kind
1 parent 85e6ba0 commit 3f731f4

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

repo/kind.ubpkg.sky

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
gh = github_repo("kubernetes-sigs/kind")
2+
3+
release = gh.latest_release()
4+
5+
os_str = {
6+
"linux": "linux",
7+
"macos": "darwin",
8+
"windows": "windows",
9+
}[os]
10+
11+
arch_str = {
12+
"x86_64": "amd64",
13+
"aarch64": "arm64",
14+
}[arch]
15+
16+
asset = release.get_asset_url("kind-{os_str}-{arch_str}".format(os_str=os_str, arch_str=arch_str))
17+
install_binary(download_asset(asset, 32*1024*1024), "kind")

0 commit comments

Comments
 (0)