Skip to content

Commit ce362b8

Browse files
alexveeclealexpdp7
authored andcommitted
Package cloud-provider-kind
1 parent e7c55eb commit ce362b8

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

repo/cloud-provider-kind.ubpkg.sky

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
gh = github_repo("kubernetes-sigs/cloud-provider-kind")
2+
3+
release = gh.latest_release()
4+
version_str = release.name().removeprefix("v")
5+
6+
os_str = {
7+
"linux": "linux",
8+
"macos": "darwin",
9+
"windows": "windows",
10+
}[os]
11+
12+
arch_str = {
13+
"x86_64": "amd64",
14+
"aarch64": "arm64",
15+
}[arch]
16+
17+
asset = release.get_asset_url("cloud-provider-kind_{version_str}_{os_str}_{arch_str}.tar.gz".format(version_str=version_str, os_str=os_str, arch_str=arch_str))
18+
19+
install_binary(extract_from_url(asset, "cloud-provider-kind"), "cloud-provider-kind")

0 commit comments

Comments
 (0)