我已经在requirements.yaml中添加了mysql。Helm dependency下载mysql图表
helm dependency update
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "nginx" chart repository
...Successfully got an update from the "stable" chart repository
Update Complete. ⎈Happy Helming!⎈
Saving 1 charts
Downloading mysql from repo <our private repository>
Deleting outdated charts
但是当我安装helm时,my_app_chart ../my_app_chart出现错误
Error: found in Chart.yaml, but missing in charts/ directory: mysql
发布于 2019-12-06 10:18:55
我更新了.helmignore
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
charts/
它包含图表/我删除了条目,它起作用了
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
发布于 2020-04-01 09:35:57
您不必将其添加到控制版本系统中,如果由于某种原因丢失了它们(例如,当您克隆存储库时),您只需重新下载它们即可。为此,请执行以下命令:
helm dependency update
上面的命令会将您在requirements.yaml
文件或Chart.yaml
中的dependencies
条目中定义的依赖项下载到charts
文件夹。这样,需求就被更新了,您将拥有正确的依赖关系,而不必担心您是否也在控制版本系统中更新了它们。
https://stackoverflow.com/questions/59210148
复制