Sitharthan Anbazhakan
Sitharthan Anbazhakan

Reputation: 255

Helm : how do I Install the latest helm chart from repo

How do I download the latest chart of package which already has different versions to it?

I tried adding the incubator repo using helm repo add <repo-name> <repo-url> and then did a helm repo update. And when I tried to download/install the latest chart using the below command:

helm install helm-name repo/chart-name

It throws the error below:

Error:
[debug] Created tunnel using local port: '37220'

[debug] SERVER: "127.0.0.1:37220"

[debug] Original chart version: ""
Error: chart "chart-name" matching  not found in repo index. (try 'helm repo update'). No chart version found for chart-name-

Any ideas on how to download the latest chart instead of specifying the chart version everytime? Or Does this download the latest charts only if the semver is used for versioning of charts?

Upvotes: 4

Views: 13530

Answers (3)

axdotl
axdotl

Reputation: 1

Keep in mind that detecting the latest chart version requires that your chart has a valid SemVer (see https://docs.helm.sh/chart_best_practices/#versions)

Otherwise the latest mechanism won't work.

Check helm search to find out whether your desired chart is listed/ available in repo.

Upvotes: 0

getslaf
getslaf

Reputation: 342

According to helm docs installing latest version is default behaviour, unless you specify exact version you want. As already described above, your issue most likely caused by missing or misspelled chart and not related to versions.

Upvotes: 0

Anna Slastnikova
Anna Slastnikova

Reputation: 1548

It means that the chart you want to install doesn't exist in the repository. Try to list all the charts . Try helm repo list to get the list of all existing charts.

I've just tried helm install incubator/vdfgdfgdfgfdg --dry-run --debug to simulate the install of some non-existing chart and got the same error:

helm install incubator/vdfgdfgdfgfdg --dry-run --debug
[debug] Created tunnel using local port: '45830'

[debug] SERVER: "127.0.0.1:45830"

[debug] Original chart version: ""
Error: chart "vdfgdfgdfgfdg" matching  not found in incubator index. (try 'helm repo update'). no chart name found

Upvotes: 3

Related Questions