Interview Prep/Helm/Dependencies, Subcharts & Library Charts

How do you consume a library chart?

IntermediateConceptDependencies, Subcharts & Library Charts
Answer
# Chart.yaml of the service chart
dependencies:
  - name: shacklib
    version: "1.2.0"
    repository: "oci://ghcr.io/devopsshack/charts"
helm dependency build ./orders

Then call its templates. A common pattern is a "merge" helper: the library defines a base Deployment, the service passes an overlay template name, and the library merges both with mergeOverwrite before toYaml, which lets services customize without copying the whole manifest.

All Helm questions Roadmap: Helm

More on Dependencies, Subcharts & Library Charts