From 01253a1de00af5beca9ee07ca75daa2304100407 Mon Sep 17 00:00:00 2001 From: Steve Kallestad Date: Fri, 6 Jan 2023 13:10:02 -0800 Subject: [PATCH] Update download URLs The storage urls are no longer valid, so I updated them to the dl.k8s.io address. --- src/helpers.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/helpers.ts b/src/helpers.ts index bf16ce3..d882155 100644 --- a/src/helpers.ts +++ b/src/helpers.ts @@ -13,14 +13,14 @@ export function getkubectlDownloadURL(version: string, arch: string): string { switch (os.type()) { case 'Linux': return util.format( - 'https://storage.googleapis.com/kubernetes-release/release/%s/bin/linux/%s/kubectl', + 'https://dl.k8s.io/release/v%s/bin/linux/%s/kubectl`, version, arch ) case 'Darwin': return util.format( - 'https://storage.googleapis.com/kubernetes-release/release/%s/bin/darwin/%s/kubectl', + 'https://dl.k8s.io/release/v%s/bin/darwin/%s/kubectl`, version, arch ) @@ -28,7 +28,7 @@ export function getkubectlDownloadURL(version: string, arch: string): string { case 'Windows_NT': default: return util.format( - 'https://storage.googleapis.com/kubernetes-release/release/%s/bin/windows/%s/kubectl.exe', + 'https://dl.k8s.io/release/v%s/bin/windows/%s/kubectl.exe`, version, arch )