我尝试通过此任务使用我的 azure Devops 管道卸载 Helm Chart:
遗憾的是它没有按照记录工作。
我的错误是:
##[error]Error: "helm uninstall" requires at least 1 argument
Usage: helm uninstall RELEASE_NAME [...] [flags]
helm.go:84: [debug] "helm uninstall" requires at least 1 argument
我的输入是:
- task: HelmDeploy@0
displayName: Helm Chart deinstallieren, wenn vorhanden
inputs:
connectionType: Azure Resource Manager
azureSubscriptionEndpoint: Azure Resource Manager
azureResourceGroup: MyRG
kubernetesCluster: MyAKS
command: uninstall
所以我已经尝试过使用 CharType 和 ChartName 和 ReleaseName - 但仍然相同。
安装工作正常:
- task: HelmDeploy@0
displayName: Helm Chart installieren
inputs:
connectionType: Azure Resource Manager
azureSubscriptionEndpoint: Azure Resource Manager
azureResourceGroup: MyRG
kubernetesCluster: MyAKS
command: install
chartType: FilePath
chartPath: infrastructure/helm/${{parameters.chart}}/${{parameters.version}}
我在这里缺少什么?
您可以尝试将以下内容添加到您的任务输入中吗:
inputs:
arguments: >
"your release name"