18
votes

I have a helm repo:

helm repo list

NAME URL

stable https://kubernetes-charts.storage.googleapis.com

local http://127.0.0.1:8879/charts

and I want to list all the charts available or search the charts under stable helm repo.

How do I do this?

No command so far to list available charts under a helm repo or just verify that a chart exists.

11

11 Answers

18
votes

First, always update your local cache:

helm repo update

Then, you can list all charts by doing:

helm search repo

Or, you can do a case insensitive match on any part of chart name using the following:

helm search repo [your_search_string]

Lastly, if you want to list all the versions you can use the -l/--version argument:

# Lists all versions of all charts
helm search repo -l 

# Lists all versions of all chart names that contain search string
helm search repo -l [your_search_string]
9
votes

You can use helm search to search for Helm charts. There is an interesting option that you can pass to helm search that will let you use regex to search for Charts. That way, you can pass a regex that matches with any Chart name. For example

helm search -r ".*"

That will show all the Charts on all repositories.

3
votes

I believe you're looking for:

helm search

In your case

helm search stable

or

helm search local

EDIT: Doc link: https://helm.sh/docs/using_helm/#helm-search-finding-charts

3
votes

you can do a "helm search repo" . I am using helm version.BuildInfo{Version:"v3.0.1"} Hope it helps

1
votes

To list all the available charts for a specific application, you can try below command:

  • Repository - stable
  • Application - sample-app

    helm search stable/sample-app -l

0
votes

Add the repo and search it:

$helm add <repo> <repo url>

$helm search --regexp <repo>/*

Replace repo with the repo you want to search, say jetstack

$ helm search --regexp jetstack/*
0
votes

Simply helm search repo to list all the charts and helm search repo search_text to list charts based on the input search text.

For Example: helm search repo my_chart

0
votes

Having gone through all the answers in this question, the answer seems to be:

You can't.

0
votes

This helped me:

  • helm repo update: for updating the repos.
  • helm search repo <repo_name>: for seeing all the helm charts that are in <repo_name> repo.
0
votes

Helm 2: helm search -r '\vstable/.*\v' (1)

Helm 3: helm search repo -r '\vstable/.*\v' (2)

From the documentation:

To look for charts with a particular name (such as stable/mysql), try searching using vertical tabs (\v). Vertical tabs are used as the delimiter between search fields.

0
votes

You can use grep as well as follows.

Get a list of all of the repos added.

helm repo list

Update your repos

helm repo update

Search for 'nginx' in all of the repos that you have

helm search repo nginx

List all the packages in bitnami

helm search repo bitnami

Finally you can use grep to filter out in a given repo

helm search repo bitnami | grep nginx