Update download URLs

The storage urls are no longer valid, so I updated them to the dl.k8s.io address.
This commit is contained in:
Steve Kallestad 2023-01-06 13:10:02 -08:00 committed by GitHub
parent 4beba283ef
commit 01253a1de0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,14 +13,14 @@ export function getkubectlDownloadURL(version: string, arch: string): string {
switch (os.type()) { switch (os.type()) {
case 'Linux': case 'Linux':
return util.format( 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, version,
arch arch
) )
case 'Darwin': case 'Darwin':
return util.format( 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, version,
arch arch
) )
@ -28,7 +28,7 @@ export function getkubectlDownloadURL(version: string, arch: string): string {
case 'Windows_NT': case 'Windows_NT':
default: default:
return util.format( 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, version,
arch arch
) )