Error: found in requirements.yaml, but missing in charts/ directory: dependency-chart
Error: found in requirements.yaml, but missing in charts/ directory: dependency-chart
我收到以下错误
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
错误是由 helm install 命令工作的其他图表中的 linter 报告的,所以它对我没有真正的帮助。
我尝试指向 requirements.yaml
中的本地图表而不是来自别名存储库,结果相同。
我 运行 也没有办法尝试调试问题,有什么建议吗?
我已经开始在本地调试 Helm 项目,我偶然发现了这个:
// If a .helmignore file matches, skip this file.
if rules.Ignore(n, fi) {
return nil
}
这提醒我,出于某种原因,我已将 charts/
添加到 .helmignore
文件中。这就是为什么它没有看到下载的依赖项的原因:(
我收到以下错误
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
错误是由 helm install 命令工作的其他图表中的 linter 报告的,所以它对我没有真正的帮助。
我尝试指向 requirements.yaml
中的本地图表而不是来自别名存储库,结果相同。
我 运行 也没有办法尝试调试问题,有什么建议吗?
我已经开始在本地调试 Helm 项目,我偶然发现了这个:
// If a .helmignore file matches, skip this file.
if rules.Ignore(n, fi) {
return nil
}
这提醒我,出于某种原因,我已将 charts/
添加到 .helmignore
文件中。这就是为什么它没有看到下载的依赖项的原因:(