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.
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