【发布时间】:2022-01-27 06:44:42
【问题描述】:
我已经创建了 helm 图表,并尝试向它添加依赖项。 我在 Chart.yaml 中添加了依赖项部分。但是当我运行“helm 依赖项更新”命令或包命令时,它会引发错误。
据我了解,根据指定的依赖项,helm 应该下载依赖项并将其放入“charts”文件夹中。
# create the helm chart, name - assign4
helm create assign4 -n helm
# added the dependencies section to Chart.yaml
dependencies:
- name: stable/tomcat
version: 3.0.1
url: https://artifacthub.io/packages/helm/cloudnativeapp/tomcat
Karans-MacBook-Pro:assign4 karanalang$ helm dep build
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "ingress-nginx" chart repository
...Successfully got an update from the "concourse" chart repository
...Successfully got an update from the "stable" chart repository
...Successfully got an update from the "bitnami" chart repository
...Successfully got an update from the "prometheus-community" chart repository
Update Complete. ⎈Happy Helming!⎈
Error: directory charts/stable/tomcat not found
Karans-MacBook-Pro:helm karanalang$ helm package assign4 -n helm -u
Error: directory /Users/karanalang/Documents/Technology/helm/assign4/charts/stable/tomcat not found
需要做什么来解决这个问题? 蒂亚!
【问题讨论】:
标签: dependencies kubernetes-helm helm3