Declaring a Library Chart Type
Setting type to library and what that forbids.
Two Kinds of Chart
Every Helm chart declares a type in Chart.yaml. The default is application, but a second type exists purely for sharing template logic.
# Chart.yaml
apiVersion: v2
name: my-app
type: applicationEnter the Library Chart
Set type: library and the chart stops being something you install. It becomes a toolbox of named templates for other charts to reuse.
# Chart.yaml
apiVersion: v2
name: common
version: 0.1.0
type: libraryAll lessons in this course
- Declaring a Library Chart Type
- Exporting Reusable Named Templates
- Consuming a Library as a Dependency
- Overriding Library Defaults Locally