Vendoring with helm dependency update
Building the charts directory and Chart.lock.
Vendoring with helm dependency update is a free Helm Academy lesson on CoddyKit — lesson 2 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Helm Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.
From Declared to Downloaded
You listed your dependencies in Chart.yaml. Now helm dependency update actually fetches them and places them inside your chart.
helm dependency update ./mychartThe charts Directory
Fetched subcharts land in a charts/ folder next to your templates. Helm packages and renders everything in there along with your chart.
mychart/
Chart.yaml
values.yaml
charts/
postgresql-15.5.0.tgzSubcharts Arrive as Archives
By default each dependency is stored as a compressed .tgz archive in charts/. Helm unpacks it automatically at install and render time.
Chart.lock Records Exact Versions
The update writes a Chart.lock file pinning the exact resolved versions and digests. It is the lockfile that makes builds reproducible.
dependencies:
- name: postgresql
repository: https://charts.bitnami.com/bitnami
version: 15.5.0Commit the Lockfile
You should commit Chart.lock to Git. Teammates and CI then resolve the very same versions instead of drifting on their own.
build vs update
helm dependency build installs the versions already pinned in Chart.lock. Update re-resolves from Chart.yaml and rewrites the lock.
helm dependency build ./mychartWhen to Use build
In CI you usually prefer dependency build. It trusts the committed lockfile, so the pipeline never silently upgrades a subchart on you.
Listing What You Pulled
Run helm dependency list to see each declared dependency and its status. It shows whether the charts directory matches Chart.yaml.
helm dependency list ./mychartRepos Must Be Reachable
Update contacts each repository to download charts. For HTTP repos you may need helm repo add first so Helm can resolve an @alias.
Vendor or Ignore charts/
Teams either commit the charts/ archives for offline builds, or gitignore them and rebuild from Chart.lock in CI. Pick one and be consistent.
Re-run After Editing Versions
Any time you change a version in Chart.yaml, re-run dependency update. Otherwise charts/ and Chart.lock stay stale and out of sync.
Quick Check
Your CI must build the exact subchart versions a teammate committed. Which command fits best?
Recap: Vendoring Dependencies
You learned that dependency update fills charts/ and writes Chart.lock, while build replays that lock. Commit the lock for reproducible installs. 🔒
Frequently asked questions
Is the “Vendoring with helm dependency update” lesson free?
Yes — the full text of “Vendoring with helm dependency update” is free to read here on the web, and the Helm Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Helm Academy course, upgrade to CoddyKit PRO.
What will I learn in “Vendoring with helm dependency update”?
Building the charts directory and Chart.lock. You practise Helm Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.
Do I need any experience to start Helm Academy?
No prior experience is required. Helm Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 2 of 4, so you can start here or from the beginning and move at your own pace.
How long does the “Vendoring with helm dependency update” lesson take?
Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.
Can I write and run code in this Helm Academy lesson?
Yes. Every Helm Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.
All lessons in this course
- Declaring Dependencies in Chart.yaml
- Vendoring with helm dependency update
- Configuring Subcharts from Parent Values
- Conditions, Tags, and Global Values