HelmInstaller: Support Helm 3
See original GitHub issueHelm 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:
- Created 4 years ago
- Reactions:13
- Comments:7 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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!
@shashankbarsin Thank you for the update! Good catch on the
v
- I made an assumption the code hadv
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.