Interview Prep/Helm/Dependencies, Subcharts & Library Charts

What is `Chart.lock` and why commit it?

BeginnerConceptDependencies, Subcharts & Library Charts
Answer

It records the exact resolved version of each dependency plus a digest of the dependency definitions. With version ranges like 16.x.x in Chart.yaml, two builds a week apart could pull different subchart versions; helm dependency build from the lock makes builds reproducible, the same role as package-lock.json. If Chart.yaml changes, Helm detects the digest mismatch and asks you to run update.

All Helm questions Roadmap: Helm

More on Dependencies, Subcharts & Library Charts