首页 > 解决方案 > 如何在 helm repo 下列出所有可用的图表?

问题描述

我有一个掌舵回购:

helm repo list

名称网址

稳定 https://kubernetes-charts.storage.googleapis.com

本地 http://127.0.0.1:8879/charts

我想列出所有可用的图表或在stablehelm repo 下搜索图表。

我该怎么做呢?

到目前为止,还没有命令可以在 helm repo 下列出可用的图表,或者只是验证图表是否存在。

标签: kuberneteskubernetes-helm

解决方案


首先,总是更新你的本地缓存:

helm repo update

然后,您可以通过以下方式列出所有图表:

helm search repo

或者,您可以使用以下命令对图表名称的任何部分进行不区分大小写的匹配:

helm search repo [your_search_string]

最后,如果要列出所有版本,可以使用 -l/--version 参数:

# 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]

推荐阅读