Interview Prep/Helm/Dependencies, Subcharts & Library Charts

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 →

  1. helm-unittest suites in the library that assert selector labels never change.
  2. A consumer test matrix: render each service chart with the new library version and diff against the previous output in CI.
  3. Treat selector or name changes as major versions; Renovate auto-merges only patch bumps.
  4. 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.

All Helm questions Roadmap: Helm

More on Dependencies, Subcharts & Library Charts