[BUG]: KubectlInstaller@0 does not support installing latest kubectl versions
TeodoraEinoryte opened this issue · 1 comments
TeodoraEinoryte commented
New issue checklist
- I searched for existing GitHub issues
- I read pipeline troubleshooting guide
- I checked how to collect logs
Task name
KubectlInstaller@0
Task version
0
Issue Description
KubectlInstaller uses such URL https://storage.googleapis.com/kubernetes-release/release/v1.30.7/bin/linux/amd64/kubectl to download kubectl. However, latest versions are not available using such URL - from 1.30.5 to 1.31.3 (except for 1.31.0).
When installing 1.30.7 using KubectlInstaller@0, I get error:
Downloading: https://storage.googleapis.com/kubernetes-release/release/v1.30.7/bin/linux/amd64/kubectl
##[error]Error: Failed to download kubectl from location https://storage.googleapis.com/kubernetes-release/release/v1.30.7/bin/linux/amd64/kubectl. Error Error: Unexpected HTTP response: 404
at Object.<anonymous> (/home/agent-admin/_work/_tasks/KubectlInstaller_8413c881-4959-43d5-8840-b4ea0ffc5cfd/0.247.1/node_modules/azure-pipelines-tasks-kubernetes-common/node_modules/azure-pipelines-tool-lib/tool.js:216:31)
at Generator.next (<anonymous>)
at fulfilled (/home/agent-admin/_work/_tasks/KubectlInstaller_8413c881-4959-43d5-8840-b4ea0ffc5cfd/0.247.1/node_modules/azure-pipelines-tasks-kubernetes-common/node_modules/azure-pipelines-tool-lib/tool.js:5:58)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
httpStatusCode: 404
}
Environment type (Please select at least one enviroment where you face this issue)
- Self-Hosted
- Microsoft Hosted
- VMSS Pool
- Container
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
Ubuntu
Relevant log output
Downloading: https://storage.googleapis.com/kubernetes-release/release/v1.30.7/bin/linux/amd64/kubectl
##[error]Error: Failed to download kubectl from location https://storage.googleapis.com/kubernetes-release/release/v1.30.7/bin/linux/amd64/kubectl. Error Error: Unexpected HTTP response: 404
at Object.<anonymous> (/home/agent-admin/_work/_tasks/KubectlInstaller_8413c881-4959-43d5-8840-b4ea0ffc5cfd/0.247.1/node_modules/azure-pipelines-tasks-kubernetes-common/node_modules/azure-pipelines-tool-lib/tool.js:216:31)
at Generator.next (<anonymous>)
at fulfilled (/home/agent-admin/_work/_tasks/KubectlInstaller_8413c881-4959-43d5-8840-b4ea0ffc5cfd/0.247.1/node_modules/azure-pipelines-tasks-kubernetes-common/node_modules/azure-pipelines-tool-lib/tool.js:5:58)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
httpStatusCode: 404
}
Full task logs with system.debug enabled
No response
Repro steps
jobs:
- job:
steps:
- task: KubectlInstaller@0
inputs:
kubectlVersion: 1.30.7
peress commented
Azure/azure-cli#30130 This fixed the url and the new v2.66.0 of Azure Cli was released.
Yet, the KubectlInstaller v0.247.1 is still using the old url.
i'm also having the same issue.