Skip to content

Helm does not support --kube-version with trailing "+" #23778

@8tomat8

Description

@8tomat8

Checklist:

  • [+] I've searched in the docs and FAQ for my answer: https://bit.ly/argocd-faq.
  • [+] I've included steps to reproduce the bug.
  • [+] I've pasted the output of argocd version.

Describe the bug

From the v3.1.0-rc3 "execute helm template command" fails with error:
Error: invalid kube version '1.28+': Invalid Semantic Version
Related change is there ea97dec
Related PR #22650

According to the helm docs, they use this lib to parse semantic versions, but it does not support the trailing +

To Reproduce

  • Deploy the ArgoCD onto k8s cluster
  • Create an ApplicationSet with helm chart
  • Push ApplicationSet into the repo
  • Sync ArgoCD

Expected behavior

The helm template command must execute successfully.

Screenshots

Version

{
    "Version": "v3.2.0+276d92d.dirty",
    "BuildDate": "2025-07-11T14:52:48Z",
    "GitCommit": "276d92d4e0b0b011f4bf0db0bc6ab6310f128087",
    "GitTreeState": "dirty",
    "GoVersion": "go1.24.4",
    "Compiler": "gc",
    "Platform": "linux/amd64",
    "KustomizeVersion": "v5.7.0 2025-06-28T07:00:07Z",
    "HelmVersion": "v3.18.4+gd80839c",
    "KubectlVersion": "v0.33.1",
    "JsonnetVersion": "v0.21.0"
}

Logs

The error on sync

Failed to load target state: failed to generate manifest for source 1 of 1: rpc error: code = Unknown desc = Manifest generation error (cached): failed to execute helm template command: failed to get command args to log: `helm template . --name-template <APP_NAME> --namespace <NAMESPACE> --kube-version 1.28+ --values <TEMP_DIR_1>/values.yaml --values <TEMP_DIR_2> <api versions removed> --include-crds` failed exit status 1: Error: invalid kube version '1.28+': Invalid Semantic Version

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions