Skip to content
Latchkey

Helm "no repository definition for" dependency in CI

A chart dependency in Chart.yaml points at a repository URL that has not been added to Helm. helm dependency update/build cannot resolve it and tells you to add the missing repo.

What this error means

helm dependency update/build fails with "Error: no repository definition for https://.../. Please add the missing repos via 'helm repo add'".

helm
Error: no repository definition for https://charts.bitnami.com/bitnami.
Please add the missing repos via 'helm repo add'

Common causes

The dependency repo was never added

A dependencies[].repository URL in Chart.yaml has no matching helm repo add on this runner, so Helm cannot map it to an index.

A fresh runner without repo registrations

Repo registrations live in the runner's Helm config, which is empty at the start of each CI job.

How to fix it

Add every dependency repo, then update

  1. Read the dependency repository URLs from Chart.yaml.
  2. Add each with helm repo add.
  3. Run helm dependency update to fetch them.
Terminal
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo update
helm dependency update ./chart

Reference dependencies by an added repo alias

Use repository: "@bitnami" in Chart.yaml so the dependency resolves through an added repo name instead of a raw URL.

Chart.yaml
dependencies:
  - name: redis
    version: "19.x.x"
    repository: "@bitnami"

How to prevent it

  • Add all dependency repos in a setup step before helm dependency update.
  • Use @alias repository references that match your helm repo add names.
  • Commit Chart.lock so dependency versions are reproducible.

Frequently asked questions

What causes ""no repository definition for""?
A dependencies[].repository URL in Chart.yaml has no matching helm repo add on this runner, so Helm cannot map it to an index.
How do I fix "no repository definition for"?
Add every dependency repo, then update

Related guides

References

Latchkey auto-heals failures like this one - detected, fixed, and retried without you. Start free → 30-day trial · No credit card