update download location

This commit is contained in:
Jeffrey C. Ollie 2025-02-28 14:47:53 -06:00
parent 4e3956a4af
commit 8727d4a21c
Signed by: jeff
GPG key ID: 6F86035A6D97044E
3 changed files with 944 additions and 944 deletions

View file

@ -50,7 +50,7 @@
pname = pname;
version = version;
src = pkgs.fetchurl {
url = "https://storage.googleapis.com/kubernetes-release/release/v${version}/bin/linux/${arch}/${pname}";
url = "https://dl.k8s.io/release/${version}/bin/linux/${arch}/${pname}";
sha256 = hashes.${pname}.${arch}.${version};
};
nativeBuildInputs = [
@ -67,12 +67,12 @@
install $src -m 0555 $out/bin/${pname}
$postInstall
'';
# postFixup = ''
# installShellCompletion --cmd ${pname} \
# --bash <($out/bin/${pname} completion bash) \
# --fish <($out/bin/${pname} completion fish) \
# --zsh <($out/bin/${pname} completion zsh)
# '';
postFixup = ''
installShellCompletion --cmd ${pname} \
--bash <($out/bin/${pname} completion bash) \
--fish <($out/bin/${pname} completion fish) \
--zsh <($out/bin/${pname} completion zsh)
'';
};
in {
apps = {

View file

@ -51,7 +51,7 @@ for pname in ["kubeadm", "kubectl", "kubelet"]:
version = f"{major}.{minor}.{patch}"
if version in hashes[pname][arch]:
continue
url = f"https://storage.googleapis.com/kubernetes-release/release/v{version}/bin/linux/{arch}/{pname}" # noqa E501
url = f"https://dl.k8s.io/release/{version}/bin/linux/{arch}/{pname}" # noqa E501
r = requests.get(url)
hash = "sha256-" + base64.b64encode(
hashlib.sha256(r.content).digest()

File diff suppressed because it is too large Load diff