Skip to Content
Learning Helm
book

Learning Helm

by Matt Butcher, Matt Farina, Josh Dolitsky
January 2021
Beginner to intermediate
212 pages
5h 38m
English
O'Reilly Media, Inc.
Book available
Content preview from Learning Helm

Appendix A. Chart API Versions

This appendix covers the differences between chart API versions 2 and 1 (legacy).

The chart API version is specified in each chart’s Chart.yaml file and is used by Helm to determine how to parse the chart and which feature sets are made available.

For new charts, API version 2 should generally be used. However, many publicly available charts were created prior to the genesis of API version 2, and use 1, the legacy API version. Here we will go into detail on each of these API versions and the ways in which they are different.

API Version 2

Chart API version 2 is the current API version that was introduced in Helm 3. This is the default API version used when new charts are created using helm create.

Charts using API version 2 are guaranteed to be supported by Helm 3, but not necessarily by Helm 2. If you are only planning to support Helm 3 and above, it is recommended to just use this API version.

The Chart.yaml File

The following is an example of a Chart.yaml file for a chart using API version 2:

apiVersion: v2 1
name: lemon
version: 1.2.3
type: application
description: When life gives you lemons, do the DevOps
appVersion: 2.0.0
home: https://example.com
icon: https://example.com/img/lemon.png
sources:
  - https://github.com/myorg/mychart
keywords:
  - fruit
  - citrus
maintainers:
  - name: Carly Jenkins
    email: carly@mail.cj.example.com
    url: https://cj.example.com ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Go, 2nd Edition

Learning Go, 2nd Edition

Jon Bodner
Learning Go

Learning Go

Jon Bodner
Kubernetes: Up and Running, 3rd Edition

Kubernetes: Up and Running, 3rd Edition

Brendan Burns, Joe Beda, Kelsey Hightower, Lachlan Evenson

Publisher Resources

ISBN: 9781492083641Errata PageSupplemental Content