A subchart upgrade (minor version) changed a default and broke your app. How do you prevent surprises?
IntermediateScenarioDependencies, Subcharts & Library Charts
Answer
Situation read → Range constraints like ^12.0.0 pulled a new minor with different defaults.
What I'd do →
- Commit
Chart.lockand build withhelm dependency build, so versions change only via deliberatehelm dependency updatePRs. - In those PRs, show
helm diff/ rendered-manifest diffs for each environment. - Pin the values that matter to us explicitly rather than relying on subchart defaults.
Why → Lockfiles plus rendered diffs turn dependency bumps into reviewed changes.
Interview tip → Same reasoning as package lockfiles in application code.
More on Dependencies, Subcharts & Library Charts
How do you declare a chart dependency in Helm 3?BeginnerWhat is the difference between `helm dependency update` and `helm dependency build`?IntermediateWhat is `Chart.lock` and why commit it?BeginnerHow does `condition` work on a dependency?BeginnerWhat are `tags` on dependencies?IntermediateWhat does `alias` do on a dependency?Intermediate