A library chart change accidentally altered selectors in all services. How do you limit blast radius next time?
AdvancedScenarioDependencies, Subcharts & Library Charts
Answer
Situation read → Libraries amplify mistakes; every bump touches every service.
What I'd do →
- helm-unittest suites in the library that assert selector labels never change.
- A consumer test matrix: render each service chart with the new library version and diff against the previous output in CI.
- Treat selector or name changes as major versions; Renovate auto-merges only patch bumps.
- Roll out library bumps to a canary service first.
Why → Library changes need contract tests, like any shared API.
Interview tip → Frame the library as an API with consumers.
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