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]: https://storage.googleapis.com has been replaced by https://dl.k8s.io #20733

Open
4 of 7 tasks
mwlpeeters opened this issue Dec 16, 2024 · 1 comment
Open
4 of 7 tasks

Comments

@mwlpeeters
Copy link

New issue checklist

Task name

Kubectl & KubectlInstaller

Task version

Kubectl@1 & KubectlInstaller@0

Issue Description

I noticed both tasks are no longer able to download the correct kubectl. In the used libraries the url https://storage.googleapis.com is used. This is changed to https://dl.k8s.io thus the tasks are now failing to download the kubectl tool.

For example:

https://storage.googleapis.com/kubernetes-release/release/v1.30.6/bin/windows/amd64/kubectl.exe.

Is now:

https://dl.k8s.io/release/v1.30.6/bin/windows/amd64/kubectl.exe

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

Both Windows and Linux buildservers

Relevant log output

Starting: KubectlInstaller
==============================================================================
Task         : Kubectl tool installer
Description  : Install Kubectl on agent machine
Version      : 0.247.1
Author       : Microsoft Corporation
Help         : https://aka.ms/azpipes-kubectl-installer-tsg
==============================================================================
Downloading: https://storage.googleapis.com/kubernetes-release/release/v1.30.6/bin/windows/amd64/kubectl.exe
##[error]Error: Failed to download kubectl from location https://storage.googleapis.com/kubernetes-release/release/v1.30.6/bin/windows/amd64/kubectl.exe. Error Error: Unexpected HTTP response: 404
    at Object.<anonymous> (F:\_\a\_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 (F:\_\a\_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 processTicksAndRejections (node:internal/process/task_queues:96:5) {
  httpStatusCode: 404
}
Finishing: KubectlInstaller

Full task logs with system.debug enabled

Starting: KubectlInstaller ============================================================================== Task : Kubectl tool installer Description : Install Kubectl on agent machine Version : 0.247.1 Author : Microsoft Corporation Help : https://aka.ms/azpipes-kubectl-installer-tsg ============================================================================== Downloading: https://storage.googleapis.com/kubernetes-release/release/v1.30.6/bin/windows/amd64/kubectl.exe ##[error]Error: Failed to download kubectl from location https://storage.googleapis.com/kubernetes-release/release/v1.30.6/bin/windows/amd64/kubectl.exe. Error Error: Unexpected HTTP response: 404 at Object. (F:\_\a\_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 () at fulfilled (F:\_\a\_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 processTicksAndRejections (node:internal/process/task_queues:96:5) { httpStatusCode: 404 } Finishing: KubectlInstaller

Repro steps

Add to a clean pipeline

    - task: KubectlInstaller@0
      inputs:
        kubectlVersion: '$(KubernetesVersion)'
@Malgefor
Copy link

Malgefor commented Dec 17, 2024

Running into the same issue!

EDIT: seems there was already an issue created in the utility-repo a month ago: microsoft/azure-pipelines-tasks-common-packages#412

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

2 participants