gpt4 book ai didi

kubernetes - 错误 : found in requirements. yaml,但在图表/目录中缺失:dependency-chart

转载 作者:行者123 更新时间:2023-12-02 11:29:00 25 4
gpt4 key购买 nike

我收到以下错误

Error: found in requirements.yaml, but missing in charts/ directory: dependency-chart

当我尝试安装图表时。该图表依赖于 dependency-chart .
requirements.yaml :
dependencies:
- name: dependency-chart
repository: "@some-repo"
version: 0.1.0

执行的命令:
rm -rf charts
helm dep up
helm upgrade --install chart-to-install . --debug

输出:
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "some-repo" chart repository
Update Complete. ⎈Happy Helming!⎈
Saving 1 charts
Downloading dependency-chart from repo gs://some-repo
Deleting outdated charts

[debug] Created tunnel using local port: '65477'
[debug] SERVER: "127.0.0.1:65477"
Error: found in requirements.yaml, but missing in charts/ directory: dependency-chart
charts/目录包含 dependency-chart-0.1.0.tgz
我还有许多其他图表取决于 dependency-chart他们工作得很好。 helm lint没有帮助:
==> Linting .
[ERROR] Chart.yaml: directory name (helm) and chart name (dependency-chart) must be the same
[INFO] Chart.yaml: icon is recommended
[WARNING] templates/: directory not found

Error: 1 chart(s) linted, 1 chart(s) failed

该错误由 linter 在 helm install 命令工作的其他图表中报告,因此它并没有真正帮助我。

我试图指向 requirements.yaml 中的本 map 表而不是来自别名存储库,结果相同。

我也没有办法尝试调试这个问题了,有什么建议吗?

最佳答案

我已经开始在本地调试 Helm 项目,但我偶然发现了这一点:

// If a .helmignore file matches, skip this file.
if rules.Ignore(n, fi) {
return nil
}

这提醒我,出于某种原因,我添加了 charts/.helmignore文件。这就是为什么它没有看到下载的依赖项的原因:(

关于kubernetes - 错误 : found in requirements. yaml,但在图表/目录中缺失:dependency-chart,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49417575/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com