首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >helm搜索功能不从存储库获取结果

helm搜索功能不从存储库获取结果
EN

Stack Overflow用户
提问于 2020-05-27 18:02:15
回答 1查看 548关注 0票数 1
代码语言:javascript
复制
▶ helm version --tls
Client: &version.Version{SemVer:"v2.9.1", GitCommit:"20adb27c7c5868466912eebdf6664e7390ebe710", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.11.0", GitCommit:"2e55dbe1fdb5fdb96b75ff144a339489417b146b", GitTreeState:"clean"}

~
▶ helm repo list
NAME        URL
stable      https://kubernetes-charts.storage.googleapis.com
incubator   https://storage.googleapis.com/kubernetes-charts-incubator
stakater    https://stakater.github.io/stakater-charts
flagger     https://flagger.app
bitnami     https://charts.bitnami.com/bitnami

~
▶ helm repo update --debug
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "flagger" chart repository
...Successfully got an update from the "stakater" chart repository
...Successfully got an update from the "incubator" chart repository
...Successfully got an update from the "bitnami" chart repository
...Successfully got an update from the "stable" chart repository
Update Complete. ⎈ Happy Helming!⎈

~
▶ helm search repo bitnami/postgresql
No results found

~
▶ helm search repo bitnami/mariadb -l
No results found

然而,这是可行的(必须在zsh上转义~ )

代码语言:javascript
复制
▶ helm search postgresql --version \~8.9.0
NAME                CHART VERSION   APP VERSION DESCRIPTION
bitnami/postgresql  8.9.9           11.8.0      Chart for PostgreSQL, an object-relational data...

如何指定要搜索的存储库?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-05-28 00:11:30

看起来Helm repo搜索功能只有在v3.0.0之后才可用。

即使我尝试使用最新的v2.16.7版本,仍然没有成功。

代码语言:javascript
复制
$ helm version
Client: &version.Version{SemVer:"v2.16.7", GitCommit:"5f2584fd3d35552c4af26036f0c464191287986b", GitTreeState:"clean"}"

$ helm repo add bitnami https://charts.bitnami.com/bitnami
"bitnami" has been added to your repositories

$ helm repo update --debug
Hang tight while we grab the latest from your chart repositories...
...Skip local chart repository
...Successfully got an update from the "stable" chart repository
...Successfully got an update from the "bitnami" chart repository
Update Complete.

$ helm repo list          
NAME    URL                                             
stable  https://kubernetes-charts.storage.googleapis.com
local   http://127.0.0.1:8879/charts                    
bitnami https://charts.bitnami.com/bitnami 

$ helm search repo bitnami/postgresql
No results found

但它在3.0.0或更高版本中工作得很好。

代码语言:javascript
复制
$ helm version
version.BuildInfo{Version:"v3.0.0", GitCommit:"e29ce2a54e96cd02ccfce88bee4f58bb6e2a28b6", GitTreeState:"clean", GoVersion:"go1.13.4"}

$ helm repo add bitnami https://charts.bitnami.com/bitnami
"bitnami" has been added to your repositories

$ helm repo update --debug
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "bitnami" chart repository
Update Complete. ⎈ Happy Helming!⎈ 

$ helm repo list
NAME    URL                               
bitnami https://charts.bitnami.com/bitnami

$ helm search repo bitnami/postgresql
NAME                    CHART VERSION   APP VERSION     DESCRIPTION                                       
bitnami/postgresql      8.10.2          11.8.0          Chart for PostgreSQL, an object-relational data...
bitnami/postgresql-ha   3.2.7           11.8.0          Chart for PostgreSQL with HA architecture (usin...
票数 4
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/62040441

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档