From 16df3611d0e03e085b26543fbc95eec5cec0570c Mon Sep 17 00:00:00 2001 From: Steve Kallestad Date: Fri, 6 Jan 2023 15:01:06 -0800 Subject: [PATCH] unit tests have 'v' in version string. remove from template --- src/helpers.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/helpers.ts b/src/helpers.ts index 453ee2b..a0838f6 100644 --- a/src/helpers.ts +++ b/src/helpers.ts @@ -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` } }