Skip to content

Conversation

@benoittgt
Copy link

@benoittgt benoittgt commented Nov 10, 2025

Context

Describe the context or motivation for this PR. Include links to any related Azure DevOps Work Items or GitHub issues.
📌 How to link to ADO Work Items

Prevent installing unreleased final version as it brokes the task.

Related:

Closes #21436

We will probably have to limit to v3 soon, v4 will be released during KubeCon 2025.


Task Name

Name of the updated or newly created pipeline task.

HelmInstaller@v1


Description

Summarize the changes made in this PR clearly and concisely.

Prevent installing rc/beta/alpha versions of Helm.


Risk Assessment (Low / Medium / High)

Assess the level of risk and provide reasoning (e.g., scope, impact, backward compatibility).

Low


Change Behind Feature Flag (Yes / No)

Can this change be behine feature flag, if not why?

No, this is fixing a bug that impact all users that do not specify a helmVersionToInstall.


Tech Design / Approach

Changed version filtering to use GitHub API's prerelease field instead of string matching for 'rc'. Thanks to preRelease field in https://api.github.com/repos/helm/helm/releases


Documentation Changes Required (Yes/No)

No


Unit Tests Added or Updated (Yes / No)

Yes - Added 3 test cases to verify prerelease filtering logic.


Additional Testing Performed

None - basic unit tests cover the filtering logic changes.


Logging Added/Updated (Yes/No)

No


Telemetry Added/Updated (Yes/No)

No


Rollback Scenario and Process (Yes/No)

No


Dependency Impact Assessed and Regression Tested (Yes/No)

Yes - Changes are isolated to version selection logic. Existing functionality unchanged.


Checklist

Prevent installing unreleased final version

Related:
- helm/helm#31472

We will probably have to limit to v3 soon.

Signed-off-by: Benoit Tigeot <[email protected]>
@benoittgt benoittgt changed the title Filter all Helm prerelease versions (beta, alpha, rc) in HelmInstaller Filter all Helm prerelease versions (beta, alpha, rc) in HelmInstallerV1 Nov 10, 2025
@benoittgt
Copy link
Author

@microsoft-github-policy-service agree company="Lifen"

@benoittgt benoittgt marked this pull request as ready for review November 10, 2025 15:11
@benoittgt benoittgt requested review from a team and manolerazvan as code owners November 10, 2025 15:11
Prevent installing unreleased final version

Related:
- helm/helm#31472

We will probably have to limit to v3 soon.

Signed-off-by: Benoit Tigeot <[email protected]>
@benoittgt benoittgt force-pushed the prevent-installing-prerelease-helm branch from d41938f to d973b0b Compare November 10, 2025 15:20
@benoittgt
Copy link
Author

/azp run

@azure-pipelines
Copy link

Commenter does not have sufficient privileges for PR 21437 in repo microsoft/azure-pipelines-tasks

@benoittgt
Copy link
Author

No more needed #21435 (review)

@benoittgt benoittgt closed this Nov 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant