Unable to install dependent Helm chart from Artifactory

3/24/2020
Helm: 3.1.1  
Artifactory Professional: 6.13.1

I have a parent service (svc-a) which depends on svc-b. Chart.yaml of svc-a has the following:

dependencies:
- name: svc-b
  version: "0.1.0"
  repository: "http://artifactory.company.com/artifactory/helm"

Used following command to upload:

helm repo add helm http://artifactory.company.com/artifactory/helm --username tom --password my-pwd

curl -utom:my-pwd -T svc-b-0.1.0.tgz "http://artifactory.company.com/artifactory/helm"

On Artifactory, i see the following structure:

helm
 |
 --svc-b-0.1.0.tgz
 --index.yaml

Following is the content of index.yaml but it doesn't look alright based on what i read in the Helm docs. I think it should contain details of svc-b Chart.yaml

apiVersion: v1
entries: {}
generated: 2020-03-24T13:12:36.379230Z

On local, when i try running the following command in parent chart (svc-a), i get error:

$ helm template svc-a --dependency-update -f svc-a/dev-values.yaml
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "helm" chart repository
...Successfully got an update from the "stable" chart repository
Update Complete. ⎈Happy Helming!⎈
Error: svc-b chart not found in repo http://artifactory.company.com/artifactory/helm

Will really appreciate some help on this.

-- Technext
artifactory
kubernetes
kubernetes-helm

0 Answers