Prerequisites
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.
Prerequisites
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 --shortto check the Helm CLI version. Helm 4 removed the--clientflag, 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:
--clientflag from the Helm version check, sincehelm version --shortworks on both Helm 3 and Helm 4.With this fix, you can use the Deploy a Helm Chart step with Helm 3 or Helm 4, with no warnings.