Skip to content

[BUG]: HelmDeploy@1 Package command fails with Helm version v4.0.0 #21436

@espenlever-skane

Description

@espenlever-skane

New issue checklist

Task name

HelmDeploy

Task version

1.263.0

Issue Description

What happened?

When running the task HelmDeploy@1 in Azure Pipelines with the package command the following output is shown:

Task : Package and deploy Helm charts
Description : Deploy, configure, update a Kubernetes cluster in Azure Container Service by running helm commands
Version : 1.263.0
Author : Microsoft Corporation
Help : https://aka.ms/azpipes-helm-tsg

C:\agent_work_tool\helm\4.0.0-beta.2\x64\windows-amd64\helm.exe version --client --short
Error: unknown flag: --client
C:\agent_work_tool\helm\4.0.0-beta.2\x64\windows-amd64\helm.exe package --save --destination C:\agent_work\9\a C:\agent_work\9\s<WORKING_DIRECTORY>
Error: unknown flag: --save
##[error]Error: unknown flag: --save

I am assuming the deprecated flags are not supported anymore.

What did you expect to happen?

Expected the task to work properly, perhaps by removing the unsupported flags

How can we reproduce it (as minimally and precisely as possible)?

Create an Azure Pipeline that runs a minimal version of the HelmDeploy command:

  • task: HelmDeploy@1
    inputs:
    azureSubscriptionForACR: $(azureSubscription)
    azureResourceGroupForACR: $(resourceGroup)
    azureContainerRegistry: $(containerRegistry)
    command: 'package'
    chartPath: $(chartPath)
    chartNameForACR: $(chartName)
    chartPathForACR: '$(containerRegistry)/$(chartName)'
    displayName: Helm Package

Helm version

4.0.0-beta.2 x64

Kubernetes version

1.13.2 x64

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

Windows 11

Relevant log output

==============================================================================
Task         : Package and deploy Helm charts
Description  : Deploy, configure, update a Kubernetes cluster in Azure Container Service by running helm commands
Version      : 1.263.0
Author       : Microsoft Corporation
Help         : https://aka.ms/azpipes-helm-tsg
==============================================================================
C:\agent\_work\_tool\helm\4.0.0-beta.2\x64\windows-amd64\helm.exe version --client --short
Error: unknown flag: --client
C:\agent\_work\_tool\helm\4.0.0-beta.2\x64\windows-amd64\helm.exe package --save --destination C:\agent\_work\13\a C:\agent\_work\13\s\Infra\Helm\ontocloak\ontocloak
Error: unknown flag: --save
##[error]Error: unknown flag: --save

Full task logs with system.debug enabled

Details
 [REPLACE THIS WITH YOUR INFORMATION] 

Repro steps

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions