Helm Chart Chart.yaml: Difference between revisions
Line 45: | Line 45: | ||
====dependencies==== | ====dependencies==== | ||
<code>dependencies</code> is an optional element that contains the list of immediate (direct) dependencies for this chart, expressed as a list of chart "coordinates": | <code>dependencies</code> is an optional element that contains the list of immediate (direct) dependencies for this chart, expressed as a list of chart "coordinates": [[Helm_Concepts#Chart_Name|name]], [[Helm_Concepts#Chart_Versioning|version]] and [[Helm_Repositories#Repository_URL|repository URL]]. Note that the immediate dependencies might have dependencies on their own, which are not explicitly specified in the chart's requirements.yaml file. Helm does not walk the dependency tree the same way like, for example, Maven does, but well formed Helm charts include recursively their own dependencies, so this is usually not a problem. For an in-depth discussion on how Helm dependencies work, see: {{Internal|Helm_Dependencies#How_Helm_Dependencies_Work|How Helm Dependencies Work}} | ||
The <code>dependencies</code> element was introduced in Helm 3 and replaces the [[Helm_Chart_requirements.yaml|requirements.yaml]] file. | |||
<syntaxhighlight lang='yaml'> | <syntaxhighlight lang='yaml'> | ||
dependencies: | dependencies: |
Revision as of 23:55, 11 March 2020
External
Internal
Overview
Revised for Helm 3
The chart's main metadata file. It is required to be present. Some of the required and optional elements are presented below, unknown elements will be silently ignored.
Example
apiVersion: v2 name: archaeopteryx version: 0.1.0 appVersion: "1.0" description: archaeopteryx Helm chart
Elements
All fields below are available in templates as built-in objects, with their first letter capitalized and prefixed by ".Chart."
Example:
{{ .Chart.Name }}
For more details see:
apiVersion
Required element; the chart API version. The apiVersion field should be "v2" for charts that require at least Helm 3. Charts supporting previous Helm versions have an apiVersion set to v1 and are still installable by Helm 3.
name
Required element. Represents the name of the chart.
version
Required element. Represents the SemVer 2 chart version number. Non-SemVer names are explicitly disallowed by the system. For more details, see
appVersion
Optional element. Represents the application version: the version of the application packaged in this chart. It does not need to be SemVer 2. For more details, see
dependencies
dependencies
is an optional element that contains the list of immediate (direct) dependencies for this chart, expressed as a list of chart "coordinates": name, version and repository URL. Note that the immediate dependencies might have dependencies on their own, which are not explicitly specified in the chart's requirements.yaml file. Helm does not walk the dependency tree the same way like, for example, Maven does, but well formed Helm charts include recursively their own dependencies, so this is usually not a problem. For an in-depth discussion on how Helm dependencies work, see:
The dependencies
element was introduced in Helm 3 and replaces the requirements.yaml file.
dependencies:
- name: a # The name of the dependency
version: # The version of the dependency
repository: # Repository URL
condition: a.enabled, global.a.enabled
tags:
- front-end
- a
For more details about the element's syntax, see:
kubeVersion
Optional element. A SemVer range of compatible Kubernetes versions.
description
Optional element; the single-sentence description of this project.
type
Optional element. See:
keywords
home
sources
maintainers
engine
icon
deprecated
TODO: https://helm.sh/docs/topics/charts/#deprecating-charts.