Documentation
¶
Overview ¶
Package download handles fetching, verifying, and extracting the KubeSolo binary from GitHub Releases, as well as offline installation from a local archive or binary file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadBundle ¶
DownloadBundle downloads the KubeSolo release tarball and the kubesoloctl binary for the target into outDir, verifies both against the release's published checksums, and writes a SHA256SUMS beside them, producing a self-contained offline bundle for an air-gapped machine. The SHA256SUMS is what an offline install or upgrade on that machine checks the archive against.
- archiveName is the kubesolo release tarball, e.g. "kubesolo-v1.2.3-linux-amd64.tar.gz"
- installerName is the target's kubesoloctl asset, e.g. "kubesoloctl-linux-arm64"
- version is the kubesolo release tag, e.g. "v1.2.3"
When the target is this host, the running kubesoloctl is copied rather than downloaded. Otherwise the target's own build is downloaded: a copy of this one would not run there.
func Install ¶
Install places the KubeSolo binary at /usr/local/bin/kubesolo. If offlineSrc is non-empty it is used as the source instead of downloading. Supported formats: .tar.gz / .tgz (archive containing the kubesolo binary), or any other path (treated as a raw binary and copied directly). Otherwise the binary is fetched from GitHub Releases using archiveName and version to build the URL.
Types ¶
This section is empty.