How to setup Kong's Helm charts as a dependency?

What’s the correct way to declare the Kong Helm charts as a dependency of my helm chart? Here’s my requirements.yaml.

dependencies:
  - name: stable/kong
    version: ~0.14.3

This is the error I’m getting when I run helm dependency update

$ helm dependency update
Error: no 'repository' field specified for dependency: "stable/kong"

Please take a look at the requirements.yaml and requirements.lock file in the following directory:

I already looked at those files before posting and still cannot get it to work. Here’s what I tried.

Using the incubator Helm repository:

dependencies:
  - name: stable/kong
    version: ~0.14.3
    repository: https://kubernetes-charts-incubator.storage.googleapis.com/

$ helm dependency update
Hang tight while we grab the latest from your chart repositories...
...Unable to get an update from the "local" chart repository (http://127.0.0.1:8879/charts):
        Get http://127.0.0.1:8879/charts/index.yaml: dial tcp 127.0.0.1:8879: connect: connection refused
...Successfully got an update from the "incubator" chart repository
...Successfully got an update from the "stable" chart repository
Update Complete.
Error: stable/kong chart not found in repo https://kubernetes-charts-incubator.storage.googleapis.com/

Using the stable Helm repository:

dependencies:
  - name: stable/kong
    version: ~0.14.3
    repository: https://kubernetes-charts.storage.googleapis.com/

$ helm dependency update
Hang tight while we grab the latest from your chart repositories...
...Unable to get an update from the "local" chart repository (http://127.0.0.1:8879/charts):
        Get http://127.0.0.1:8879/charts/index.yaml: dial tcp 127.0.0.1:8879: connect: connection refused
...Successfully got an update from the "stable" chart repository
Update Complete.
Error: stable/kong chart not found in repo https://kubernetes-charts.storage.googleapis.com/

Furthermore, I opened both official Helm chart repositories in the browser and searched the repository index data for “Kong” and there are no text occurrences.

https://kubernetes-charts.storage.googleapis.com/

https://kubernetes-charts-incubator.storage.googleapis.com/

Try:

dependencies:
  - name: kong
    version: ~0.14.3
    repository: https://kubernetes-charts.storage.googleapis.com/
1 Like

YES! That worked. Thank you very much.

dependencies:
  - name: kong
    version: ~0.14.3
    repository: https://kubernetes-charts.storage.googleapis.com/

$ helm dependency update
Hang tight while we grab the latest from your chart repositories...
...Unable to get an update from the "local" chart repository (http://127.0.0.1:8879/charts):
        Get http://127.0.0.1:8879/charts/index.yaml: dial tcp 127.0.0.1:8879: connect: connection refused
...Successfully got an update from the "incubator" chart repository
...Successfully got an update from the "stable" chart repository
Update Complete.
Saving 1 charts
Downloading kong from repo https://kubernetes-charts.storage.googleapis.com/
Deleting outdated charts