kubectl

cli

Supported platforms: darwin, linux.

Install

skt install kubectl@<version> --json

Source

Type
cli
Checksum style
single
Download URL
https://dl.k8s.io/release/v{version}/bin/{os}/{arch}/{download_file}
Checksum URL
https://dl.k8s.io/release/v{version}/bin/{os}/{arch}/{checksum_file}

Recipe TOML

name = "kubectl"
type = "cli"

# kubectl ships as a single uncompressed binary (no archive). The
# download-file is the binary name itself, which the engine copies into
# the cache slot verbatim and marks executable.
[platform.linux]
download-file = "kubectl"
checksum-file = "kubectl.sha256"
exe-path = "kubectl"

[platform.darwin]
download-file = "kubectl"
checksum-file = "kubectl.sha256"
exe-path = "kubectl"

[install]
download-url = "https://dl.k8s.io/release/v{version}/bin/{os}/{arch}/{download_file}"
checksum-url = "https://dl.k8s.io/release/v{version}/bin/{os}/{arch}/{checksum_file}"
# The sibling .sha256 holds a single bare hex digest for this one asset.
checksum-style = "single"