A team wants their chart to work standalone and as a subchart of a platform umbrella. What do you watch for?
AdvancedScenarioDependencies, Subcharts & Library Charts
Answer
Situation read → As a subchart, names, globals and value scopes change.
What I'd do →
- Never read parent-only values; use
globalfor shared settings and document which ones. - Use the
fullnamehelper (release + chart name) so names stay unique under the umbrella. - Avoid relying on
.Release.Namealone for resource names. - Test both:
helm templatestandalone, and as a dependency in a test umbrella chart in CI.
Why → Subcharts share the release but must remain self-contained.
Interview tip → Testing both modes in CI is the concrete answer.
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