Skip to content

Add Helm 4 support to the Deploy a Helm Chart step #10138

Description

@hnrkndrssn

Prerequisites

  • I have searched open and closed issues to make sure it isn't already requested
  • My team has started working on this issue
  • I have written a descriptive issue title

The enhancement

The Need

Helm released major version 4, and our Deploy a Helm Chart step doesn't support it yet.

The step calls helm version --client --short to check the Helm CLI version. Helm 4 removed the --client flag, so the command fails outright when Helm 4 is installed. On top of that, our version parser only recognizes Helm 2 and Helm 3, so even after working around the flag issue, Helm 4 gets flagged as an unparseable version.

Solution

Update the Deploy a Helm Chart step so it works with Helm 4:

  • Drop the --client flag from the Helm version check, since helm version --short works on both Helm 3 and Helm 4.
  • Recognize any Helm major version 3 or later as supported, instead of only recognizing Helm 3. This means future Helm releases keep working without more changes on our end.

With this fix, you can use the Deploy a Helm Chart step with Helm 3 or Helm 4, with no warnings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/enhancementThis issue represents an enhancement we are committed to adding to Octopus as some time

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions