helm chart dependency - Error: directory charts/stable/tomcat not found
helm chart dependency - Error: directory charts/stable/tomcat not found
我已经创建了 helm chart,并尝试向其添加依赖项。
我在 Chart.yaml 中添加了依赖项部分 .. 但是当我 运行 'helm dependency update' 命令或包命令时,它会抛出错误。
据我了解,根据指定的依赖项,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
需要做什么来解决这个问题?
蒂亚!
Artifact Hub 允许您探索 Helm 图表但不存储它们。您应该使用 Helm 注册表本身的 URL 更新 URL。
根据我在 Artifact Hub 上看到的内容,您应该改用 https://cloudnativeapp.github.io/charts/curated/
。
我在 Charts.yaml 中使用了以下内容来解决问题:
dependencies:
- name: tomcat
version: '9.1.5'
repository: 'https://charts.bitnami.com/bitnami'
即指定存储库和正确的版本,
名称可以是我们选择的任何名称。
我已经创建了 helm chart,并尝试向其添加依赖项。 我在 Chart.yaml 中添加了依赖项部分 .. 但是当我 运行 'helm dependency update' 命令或包命令时,它会抛出错误。
据我了解,根据指定的依赖项,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
需要做什么来解决这个问题? 蒂亚!
Artifact Hub 允许您探索 Helm 图表但不存储它们。您应该使用 Helm 注册表本身的 URL 更新 URL。
根据我在 Artifact Hub 上看到的内容,您应该改用 https://cloudnativeapp.github.io/charts/curated/
。
我在 Charts.yaml 中使用了以下内容来解决问题:
dependencies:
- name: tomcat
version: '9.1.5'
repository: 'https://charts.bitnami.com/bitnami'
即指定存储库和正确的版本, 名称可以是我们选择的任何名称。