argocd-vault-plugin: Helm with dependency fails

Describe the bug It seems if the Helm chart has a dependency, it fails that the repository is not found.

rpc error: code = Unknown desc = `sh -c helm dependency build` failed exit status 1: Error: no repository definition for https://charts.omegion.dev. Please add the missing repos via 'helm repo add'

To Reproduce Steps to reproduce the behavior:

      configManagementPlugins: |-
        - name: argocd-vault-plugin-with-helm
          init:
            command: [sh, -c]
            args: ["helm dependency build"]
          generate:
            command: ["sh", "-c"]
            args: ["helm template $ARGOCD_APP_NAME . > all.yaml && argocd-vault-plugin generate all.yaml -c /etc/config/vault-config.yaml"]

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 24 (2 by maintainers)

Most upvoted comments

Indeed, you can read more here: https://helm.sh/docs/helm/helm_dependency/

@tuananh https://helm.sh/docs/helm/helm_dependency_update/ You can sync your dependencies on your repo, then ArgoCD will use them rather than fetching from remote.

Seems like this may be a workaround… Instead, you can add those repos in your init script.. Something like helm repo add https://charts.omegion.dev && helm dependency build. You could also vendor the helm dependencies.