Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REGRESSION]: HelmDeploy@1 (v1.250.1) no longer works as documented with Azure DevOps environments #20794

Closed
4 of 7 tasks
amithkk opened this issue Jan 21, 2025 · 1 comment
Closed
4 of 7 tasks
Labels
Area: Release bug regression This used to work, but a change in the service/tasks broke it. triage

Comments

@amithkk
Copy link

amithkk commented Jan 21, 2025

New issue checklist

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

Repro steps

@amithkk amithkk added bug regression This used to work, but a change in the service/tasks broke it. labels Jan 21, 2025
@amithkk
Copy link
Author

amithkk commented Jan 21, 2025

Duplicate of #20791

@amithkk amithkk closed this as completed Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Release bug regression This used to work, but a change in the service/tasks broke it. triage
Projects
None yet
Development

No branches or pull requests

1 participant