Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: KubectlInstaller@0 does not support installing latest kubectl versions #20702

Open
3 of 7 tasks
TeodoraEinoryte opened this issue Nov 29, 2024 · 1 comment
Open
3 of 7 tasks
Assignees

Comments

@TeodoraEinoryte
Copy link

TeodoraEinoryte commented Nov 29, 2024

New issue checklist

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
Copy link

peress commented Nov 29, 2024

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.

@v-schhabra v-schhabra added the Area:RM RM task team label Dec 9, 2024
@v-bkasu v-bkasu self-assigned this Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants