What is a library chart and when would you build one?
IntermediateConceptDependencies, Subcharts & Library Charts
Answer
A chart with type: library that only contains named templates. Platform teams build one (for example shacklib) when many microservice charts need the same Deployment, Service, HPA and PDB shapes, labels and security defaults. Each service chart depends on it and its templates become a few lines:
# templates/deployment.yaml in a service chart
{{ include "shacklib.deployment" . }}
Fixing a security default in the library and bumping the dependency propagates it to every service.
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