helm / helm

The Kubernetes Package Manager
https://helm.sh
Apache License 2.0
27.01k stars 7.11k forks source link

Confusing error message if the version for a dependency is not found in the repo #11373

Open vovtz opened 2 years ago

vovtz commented 2 years ago

If the particular version of a dependency as stated in your Helm chart can’t be found in the repo’s index, an error message that is not entirely clear is output (where ‘[name-of-the-dependency-or-dependencies]’ is something alike ‘adminer’ or ‘adminer, apline’):

Error: can't get a valid version for repositories [name-of-the-dependency-or-dependencies]. Try changing the version constraint in Chart.yaml

No versions, nor the relevant repos are mentioned in the error message. It also speaks of a ‘valid version for repositories’, not of the versions of the subcharts. Also no mention is made of ‘dependencies’.

Output of helm version:

version.BuildInfo{Version:"v3.9.4", GitCommit:"dbc6d8e20fe1d58d50e6ed30f09a04a77e4c68db", GitTreeState:"clean", GoVersion:"go1.19"}

But this applies to earlier versions equally.

Output of kubectl version:

Client Version: v1.23.5

But not relevant.

Cloud Provider/Platform (AKS, GKE, Minikube etc.): Any and all, N/A

github-actions[bot] commented 1 year ago

This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.