头盔搜索功能无法从repo中获取结果。

问题描述 投票:1回答:1
▶ 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)

▶ 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...

如何指定一个repo来搜索?

kubernetes-helm
1个回答
2
投票

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

即使我试着用最新的v2.16.7版本,还是没有结果。

$ 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或以上的版本中工作得很好。

$ 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...
© www.soinside.com 2019 - 2024. All rights reserved.