community icon indicating copy to clipboard operation
community copied to clipboard

`helm dependency build` doesn't work with repository url

Open janario opened this issue 1 year ago • 0 comments

I have a helm chart with a dependency that points to a repository URL.

apiVersion: v2
appVersion: 0.2.0
name: ci-prometheus
version: 0.2.0
type: application
dependencies:
  - name: kube-prometheus-stack
    version: 45.10.1
    repository: "https://prometheus-community.github.io/helm-charts"
    condition: kube-prometheus-stack.prometheus.enabled

But at my CI we are running helm dependency build to rely on the lock file and not have a surprise changes

https://helm.sh/docs/helm/helm_dependency_build/

The problem is that it forces me to have added it in the repo list:

Error: no repository definition for https://prometheus-community.github.io/helm-charts. Please add the missing repos via 'helm repo add' 

It should use the URL as in the helm dependency update.

janario avatar Feb 02 '24 14:02 janario