Built-in Objects

    • Release: This object describes the release itself. It has several objects inside of it:
      • Release.Name: The release name
      • Release.Time: The time of the release
      • Release.Namespace: The namespace to be released into (if the manifest doesn’t override)
      • Release.Service: The name of the releasing service (always Tiller).
      • Release.Revision: The revision number of this release. It begins at 1 and is incremented for each helm upgrade.
      • : This is set to true if the current operation is an install.
    • Values: Values passed into the template from the values.yaml file and from user-supplied files. By default, Values is empty.
    • Chart: The contents of the Chart.yaml file. Any data in Chart.yaml will be accessible here. For example {{.Chart.Name}}-{{.Chart.Version}} will print out the mychart-0.1.0.
    • Files: This provides access to all non-special files in a chart. While you cannot use it to access templates, you can use it to access other files in the chart. See the section Accessing Files for more.
      • Files.Get is a function for getting a file by name (.Files.Get config.ini)
    • Capabilities: This provides information about what capabilities the Kubernetes cluster supports.
      • Capabilities.APIVersions is a set of versions.
      • Capabilities.APIVersions.Has $version indicates whether a version (batch/v1) is enabled on the cluster.
      • provides a way to look up the Kubernetes version. It has the following values: Major, Minor, GitVersion, GitCommit, GitTreeState, BuildDate, GoVersion, Compiler, and Platform.
      • Capabilities.TillerVersion provides a way to look up the Tiller version. It has the following values: SemVer, GitCommit, and GitTreeState.
    • Template: Contains information about the current template that is being executed
      • BasePath: The namespaced path to the templates directory of the current chart (e.g. ).