in src/kubectl-util.ts [20:36]
export async function downloadKubectl(version: string): Promise<string> {
if (!version) {
version = await getStableVerison(kubectlToolName)
}
let cachedToolpath = toolCache.find(kubectlToolName, version)
if (!cachedToolpath) {
cachedToolpath = await setCachedToolPath(kubectlToolName, version)
}
const kubectlPath = path.join(
cachedToolpath,
kubectlToolName + getExecutableExtension()
)
fs.chmodSync(kubectlPath, '777')
return kubectlPath
}