use dl.k8s.io not gs://kubernetes-release (#10066)

This commit is contained in:
Kulwant Singh
2023-05-17 04:02:33 +00:00
committed by GitHub
parent 3a3addb91e
commit 9948863d3a
5 changed files with 11 additions and 11 deletions

View File

@@ -36,7 +36,7 @@ def download_hash(versions):
for version in versions:
if not version.startswith("v"):
version = f"v{version}"
url = f"https://storage.googleapis.com/kubernetes-release/release/{version}/bin/linux/{arch}/{download}"
url = f"https://dl.k8s.io/release/{version}/bin/linux/{arch}/{download}"
download_file = requests.get(url, allow_redirects=True)
download_file.raise_for_status()
sha256sum = hashlib.sha256(download_file.content).hexdigest()