Interview Prep/Helm/Dependencies, Subcharts & Library Charts

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.

All Helm questions Roadmap: Helm

More on Dependencies, Subcharts & Library Charts