question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

HelmInstaller: Support Helm 3

See original GitHub issue

Helm 3 is now in beta. Specifying helmVersionToInstall: 3.0.0-beta.3 properly installs Helm 3 as expected, but since helm init (and Tiller) have been deprecated in v3, I get an error: Error: unknown flag: --client-only. My current workaround is to do continueOnError: true but it leaves every build result marked as Warning. It would be great to get proper Helm 3 support. Perhaps Helm could be verified inside helmtooinstaller.ts using helm version instead (though that may cause issues with Helm 2 if --client-only isn’t specified).

Required Information

Question, Bug, or Feature?
Type: Bughancement

Enter Task Name: HelmInstaller@1

Environment

  • Server: Azure Pipelines

  • Agent: Hosted (ubuntu-16.04)

Task logs

Starting: Helm install
==============================================================================
Task         : Helm tool installer
Description  : Install Helm on an agent machine
Version      : 1.155.1
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/tool/helm-installer
==============================================================================
Downloading: https://get.helm.sh/helm-v3.0.0-beta.3-linux-amd64.zip
Extracting archive
sr/bin/unzip /home/vsts/work/_temp/helm-v3.0.0-beta.3-e253d2bf-3c0f-46bd-8297-a3e7764250ab.zip
Archive:  /home/vsts/work/_temp/helm-v3.0.0-beta.3-e253d2bf-3c0f-46bd-8297-a3e7764250ab.zip
   creating: linux-amd64/
  inflating: linux-amd64/LICENSE     
  inflating: linux-amd64/helm        
  inflating: linux-amd64/README.md   
Caching tool: helm 3.0.0-beta.3 x64
Prepending PATH environment variable with directory: /opt/hostedtoolcache/helm/3.0.0-beta.3/x64/linux-amd64
Verifying helm installation...
pt/hostedtoolcache/helm/3.0.0-beta.3/x64/linux-amd64/helm init --client-only
Error: unknown flag: --client-only
##[error]Error: The process '/opt/hostedtoolcache/helm/3.0.0-beta.3/x64/linux-amd64/helm' failed with exit code 1
Finishing: Helm install

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:13
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
jldeencommented, Nov 13, 2019

@spowser and @bkaid I just pushed PR #11735 to hopefully resolve this issue ASAP. However, while we wait, I wrote a blog post about a work around, if it helps at all.

@shashankbarsin and @Anumita can we get a review of the PR when you have free moment? Thanks!

2reactions
jldeencommented, Nov 15, 2019

@shashankbarsin Thank you for the update! Good catch on the v - I made an assumption the code had v baked in and the task just used the numbers. Thanks @Anumita for fixing this and getting this pushed into m160 ASAP. Will keep posted until the changes are live in all rings.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installing Helm
Installing Helm. This guide shows how to install the Helm CLI. Helm can be installed either from source, or from pre-built binary releases....
Read more >
HelmInstaller@1 - Helm tool installer v1 task - Microsoft Learn
Remarks. This task can be used for installing a specific version of helm binary on agents. Troubleshooting. HelmInstaller task running on a private...
Read more >
Pipeline Helm Version only installs the latest version 3
task: HelmInstaller@0 inputs: helmVersion: '2.16.4' installKubectl: true ... machine version : 0.177.0 Author : Microsoft Corporation Help ...
Read more >
Helm 3 - CI/CD with Azure DevOps using Azure Container ...
In this post we will see how we can publish a sample Helm chart to ACR and also deploy the application to Azure...
Read more >
Using Helm 3 with Azure DevOps - Jessica Deen
As of the writing of this post, Helm 3 is not natively supported yet ... if you were to use the HelmInstall task...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found