Closed
Description
New issue checklist
- I searched for existing GitHub issues
- I read pipeline troubleshooting guide
- I checked how to collect logs
Task name
HelmDeploy@1
Breaking task version
1.250.1
Last working task version
1.248.1
Regression Description
In 1.248.1
, if an Azure DevOps Environment of type kubernetes
was provided, HelmDeploy@1 would automatically pick up kubernetes cluster details. An example stage is shown below.
- stage: DeploymentStage
displayName: 'Deploy to Target Environment'
dependsOn: PreviousStage
condition: and(succeeded(), ${{ in(parameters.targetEnvironment, 'some', 'environment', 'names') }})
jobs:
- deployment: "TargetDeployment"
pool:
vmImage: 'ubuntu-latest'
environment:
name: $(targetEnvironmentName)
resourceType: Kubernetes
strategy:
runOnce:
deploy:
steps:
- checkout: self
- task: HelmInstaller@1
inputs:
helmVersionToInstall: 'latest'
displayName: 'Install Helm'
- script: "ls -la"
- task: HelmDeploy@1
inputs:
namespace: $(targetNamespace)
command: 'upgrade'
releaseName: $(helmReleaseName)
chartPath: '$(chartPath)/$(chartName)'
chartType: FilePath
valueFile: '$(chartPath)/$(chartName)/values.target.yaml'
overrideValues: |
service.image.repository=$(registryUrl)/$(imageRepository)
service.image.tag=${{ parameters.deployTag }}
install: true
waitForExecution: true
displayName: 'Deploy to Target Environment'
After upgrading to 1.250.1
, the HelmDeploy task fails with the following log message:
##[error]Error: Input required: kubernetesCluster
This change in parameter requirements does not seem to be spelt out in the release notes or in the Azure DevOps Documentation for environments.
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
n/a
Relevant log output
##[error]Error: Input required: kubernetesCluster
Full task logs with system.debug enabled
No response