Skip to content

Commit

Permalink
use dl.k8s.io rather than storage.googleapis.com for official upstrea…
Browse files Browse the repository at this point in the history
…m k8s status
  • Loading branch information
addyess committed Oct 8, 2024
1 parent 14ef92d commit ace4e61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions cilib/k8s.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@

def latest():
"""return latest version, this could be an alpha release"""
ret = requests.get(
"https://storage.googleapis.com/kubernetes-release/release/latest.txt"
)
ret = requests.get("https://dl.k8s.io/release/latest.txt")
if ret.ok:
ver_str = ret.text.strip().lstrip("v")
return semver.parse(ver_str)
Expand All @@ -15,9 +13,7 @@ def latest():

def stable():
"""return latest stable"""
ret = requests.get(
"https://storage.googleapis.com/kubernetes-release/release/stable.txt"
)
ret = requests.get("https://dl.k8s.io/release/stable.txt")
if ret.ok:
ver_str = ret.text.strip().lstrip("v")
return semver.parse(ver_str)
Expand Down
2 changes: 1 addition & 1 deletion jobs/build-snaps/build-release-cdk-addons.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ pipeline {
for arch in ${env.ADDONS_ARCHES}
do
echo "Prepping cdk-addons (\${arch}) snap source."
wget -O build/kubectl https://storage.googleapis.com/kubernetes-release/release/${kube_version}/bin/linux/\${arch}/kubectl
wget -O build/kubectl https://dl.k8s.io/${kube_version}/bin/linux/\${arch}/kubectl
chmod +x build/kubectl
sed 's/KUBE_VERSION/${kube_ersion}/g' cdk-addons.yaml > build/snapcraft.yaml
if [ "\${arch}" = "ppc64le" ]
Expand Down

0 comments on commit ace4e61

Please sign in to comment.