unit tests have 'v' in version string. remove from template
This commit is contained in:
parent
8fa3cccf07
commit
16df3611d0
1 changed files with 3 additions and 3 deletions
|
@ -12,14 +12,14 @@ export function getKubectlArch(): string {
|
|||
export function getkubectlDownloadURL(version: string, arch: string): string {
|
||||
switch (os.type()) {
|
||||
case 'Linux':
|
||||
return `https://dl.k8s.io/release/v${version}/bin/linux/${arch}/kubectl`
|
||||
return `https://dl.k8s.io/release/${version}/bin/linux/${arch}/kubectl`
|
||||
|
||||
case 'Darwin':
|
||||
return `https://dl.k8s.io/release/v${version}/bin/darwin/${arch}/kubectl`
|
||||
return `https://dl.k8s.io/release/${version}/bin/darwin/${arch}/kubectl`
|
||||
|
||||
case 'Windows_NT':
|
||||
default:
|
||||
return `https://dl.k8s.io/release/v${version}/bin/windows/${arch}/kubectl.exe`
|
||||
return `https://dl.k8s.io/release/${version}/bin/windows/${arch}/kubectl.exe`
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue