jfrog / chartcenter

The Central Helm Repository for the Community
https://chartcenter.io
Apache License 2.0
41 stars 16 forks source link

Using a chart from CC as a sub-chart dependency #20

Closed longwa closed 3 years ago

longwa commented 3 years ago

When using chartcenter, the charts have an extra path element that is the original repo. This works fine for installation and fetching, but how do you use them as subcharts?

dependencies:
  - name: bitnami/rabbitmq
    version: 7.5.8
    repository: https://repo.chartcenter.io

When I try to use the above in a chart, I can run helm dependency update and it pulls down a file called rabbitmq-7.5.8.tgz but when you try to use the chart you get:

Error: found in Chart.yaml, but missing in charts/ directory: bitnami/rabbitmq

I'm assuming this is because of the extra path element. Is there some trick to make this work?

ankushchadha commented 3 years ago

Thanks, @longwa for filing this issue. There's a plugin that resolves this issue. And an upstream issue has been opened that will eliminate the need for the plugin.

@rimusz let's update the FAQ section. Thanks

rimusz commented 3 years ago

To be more correct the plugin will be always needed for helm v2.

rimusz commented 3 years ago

FAQ got updated https://github.com/jfrog/chartcenter/blob/master/docs/faq.md#can-i-use-chartcenter-for-dependency-charts and the plugin solves the issue, so I'm closing this issue

d-m commented 3 years ago

The helm client issue was closed shortly after this one. Looks like they won't be solving it in the client.