Skip to content

helm pull silently pulling a different chart version if the one specified doesn't exist #31253

Description

@e-minguez

What happened?

helm repo add rancher https://charts.rancher.io/
helm pull rancher/longhorn-crd --version 106.2.0+up1.8.2 --destination /tmp/
ls -l /tmp/longhorn*
-rw-r--r-- 1 rancher users 13883 Sep  5 16:27 /tmp/longhorn-crd-106.2.0+up1.8.1.tgz

Version 106.2.0+up1.8.2 doesn't exist

What did you expect to happen?

Helm should fail if the version is not there

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

helm repo add rancher https://charts.rancher.io/
helm pull rancher/longhorn-crd --version 106.2.0+up1.8.2 --destination /tmp/
ls -l /tmp/longhorn*
-rw-r--r-- 1 rancher users 13883 Sep  5 16:27 /tmp/longhorn-crd-106.2.0+up1.8.1.tgz

Helm version

Details ```console $ helm version version.BuildInfo{Version:"v3.18.6", GitCommit:"b76a950f6835474e0906b96c9ec68a2eff3a6430", GitTreeState:"clean", GoVersion:"go1.24.6"} ```

Kubernetes version

No K8s version

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions