错误:在requirements.yaml中找到,但在图表/目录中缺少:dependency-chart

sup*_*ali 3 kubernetes kubernetes-helm

我收到以下错误

Error: found in requirements.yaml, but missing in charts/ directory: dependency-chart
Run Code Online (Sandbox Code Playgroud)

当我尝试安装图表时.该图表依赖于dependency-chart.

requirements.yaml:

dependencies:
- name: dependency-chart
  repository: "@some-repo"
  version: 0.1.0
Run Code Online (Sandbox Code Playgroud)

执行的命令:

rm -rf charts
helm dep up
helm upgrade --install chart-to-install . --debug
Run Code Online (Sandbox Code Playgroud)

输出:

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
Run Code Online (Sandbox Code Playgroud)

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
Run Code Online (Sandbox Code Playgroud)

ERROR由其他图表中的linter报告,其中helm install命令有效,所以它并没有真正帮助我.

我试图指向本地图表requirements.yaml而不是别名存储库,结果相同.

我已经用尽了试图调试问题,有什么建议吗?

sup*_*ali 12

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

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

这提醒我,由于某种原因,我已经添加charts/.helmignore文件中.这就是它没有看到下载的依赖项的原因:(