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:
parent
4beba283ef
commit
01253a1de0
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue