Skip to content

Helm 4: Emits "unable to find exact version" even when no version was specified #31548

Description

@armingerten

What happened?

When running commands like helm show chart or helm template, a warning is emitted that suggests that no exact version can be found:

helm show chart brigade/brigade
level=WARN msg="unable to find exact version; falling back to closest available version" chart=brigade requested="" selected=1.10.0

This warning does not show when using OCI references!

This is maybe a regression introduced with #31253 / 9e2d468

What did you expect to happen?

In case no version was specified (i.e. the --version parameter was set), no warning should be emitted and the latest version is used as described by the --version flag description:

  --version string             specify a version constraint for the chart version to use. This constraint can be a specific tag (e.g. 1.1.1) or it may reference a valid range (e.g. ^2.0.0). If this is not specified, the latest version is used

How can we reproduce it (as minimally and precisely as possible)?

  1. helm repo add brigade https://brigadecore.github.io/charts
  2. helm repo update
  3. helm show chart brigade/brigade

Helm version

Details
$ helm version
# version.BuildInfo{Version:"v4.0.0", GitCommit:"99cd1964357c793351be481d55abbe21c6b2f4ec", GitTreeState:"clean", GoVersion:"go1.25.4", KubeClientVersion:"v1.34"}

Kubernetes version

Details
$ kubectl version
# client Version: v1.32.7
# Kustomize Version: v5.5.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugCategorizes issue or PR as related to a bug.good first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions