更新Helm子图表失败,没有明显错误



当尝试添加/更新一个依赖到一个舵图我得到这个错误。没有安装名称为helm-manager的helm插件。

$ helm dep update                                                                                                                                
Getting updates for unmanaged Helm repositories...
...Unable to get an update from the "https://kubernetes-charts.storage.googleapis.com/" chart repository:
failed to fetch https://kubernetes-charts.storage.googleapis.com/index.yaml : 403 Forbidden
...Unable to get an update from the "https://kubernetes-charts.storage.googleapis.com/" chart repository:
failed to fetch https://kubernetes-charts.storage.googleapis.com/index.yaml : 403 Forbidden
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "bitnami" chart repository
Update Complete. Happy Helming!
Error: no cached repository for helm-manager-1067d9c6027b8c3f27b49e40521d64be96ea412858d8e45064fa44afd3966ddc found. (try 'helm repo update'): open /Users/<redacted>/Library/Caches/helm/repository/helm-manager-1067d9c6027b8c3f27b49e40521d64be96ea412858d8e45064fa44
afd3966ddc-index.yaml: no such file or directory

Helm图表的稳定库和孵化器库已经移动到一个新的位置。您必须更新图表中的URI。为了让Helm依赖解析器找到正确的位置,请将其指向新的存储库。

<表类> 名称 老位置 新位置 tbody><<tr>稳定https://kubernetes-charts.storage.googleapis.comhttps://charts.helm.sh/stablehttps://kubernetes-charts-incubator.storage.googleapis.comhttps://charts.helm.sh/incubator

当我的Chart.yaml和子图表依赖项的配置不匹配时,我有时会遇到这种情况。

例如:

Chart.yaml:

dependencies:
- name: foo
...
- name: bar
...

values.yaml:

foo: 
flag: true
# but no entry for bar

它可能是我配置的其他元素的工件(人工托管世界的代理Helm),但我发现自己经常遇到这种情况,我希望这个答案可以帮助其他人。

最新更新