Interview Prep/Helm/Dependencies, Subcharts & Library Charts

Ten service charts copy the same `_helpers.tpl`. A security fix to labels is needed everywhere. What do you build?

IntermediateScenarioDependencies, Subcharts & Library Charts
Answer

Situation read → Copy-paste helpers mean ten PRs per fix.

What I'd do →

  1. Create a library chart shacklib (type: library) with shacklib.labels, shacklib.deployment, shacklib.service and security defaults.
  2. Publish it to the OCI registry with SemVer.
  3. Each service chart adds it as a dependency and replaces its templates with {{ include "shacklib.deployment" . }}.
  4. Renovate or Dependabot opens PRs to bump the library version across services.

Why → One versioned source for shared logic, rolled out like any dependency.

Interview tip → Mention automated dependency bumps to close the loop.

All Helm questions Roadmap: Helm

More on Dependencies, Subcharts & Library Charts