Interview Prep/Helm/Dependencies, Subcharts & Library Charts

What is the difference between `helm dependency update` and `helm dependency build`?

IntermediateConceptDependencies, Subcharts & Library Charts
Answer
  • update: resolves version ranges in Chart.yaml against the repositories, downloads the newest matching versions into charts/, and rewrites Chart.lock.
  • build: downloads exactly the versions pinned in Chart.lock (falls back to update if there is no lock).
helm dependency update ./shop   # developer, intentionally bumping
helm dependency build ./shop    # CI, reproducible
helm dependency list ./shop     # shows status: ok, missing, wrong version

Commit Chart.lock, not the .tgz files.

All Helm questions Roadmap: Helm

More on Dependencies, Subcharts & Library Charts