unit tests have 'v' in version string. remove from template

This commit is contained in:
Steve Kallestad 2023-01-06 15:01:06 -08:00
parent 8fa3cccf07
commit 16df3611d0

View file

@ -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`
}
}