Helm Templates: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
Line 18: Line 18:
===Release.Name===
===Release.Name===
Exposes the [[Helm_Concepts#Release_Name|release name]]:
Exposes the [[Helm_Concepts#Release_Name|release name]]:
  {{ .Release.Name}}
  {{ .Release.Name }}
===Release.Revision===
===Release.Revision===
Exposes the [[Helm_Concepts#Release_Revision|release revision]]:
Exposes the [[Helm_Concepts#Release_Revision|release revision]]:
  {{ .Release.Revision}}
  {{ .Release.Revision }}
===Release.Time===
===Release.Time===
Exposes the time of the release:
Exposes the time of the release:
  {{ .Release.Time}}
  {{ .Release.Time }}
===Release.Namespace===
===Release.Namespace===
Exposes the namespace to be released info, if the manifest does not override:
Exposes the namespace to be released info, if the manifest does not override:
  {{ .Release.Namespace}}
  {{ .Release.Namespace }}
===Release.IsUpgrade===
===Release.IsUpgrade===
This is set to true if the current operation is an upgrade or rollback.
This is set to true if the current operation is an upgrade or rollback.
  {{ .Release.IsUpgrade}}
  {{ .Release.IsUpgrade }}
===Release.IsInstall===
===Release.IsInstall===
This is set to true if the current operation is an install.
This is set to true if the current operation is an install.
  {{ .Release.IsInstall}}
  {{ .Release.IsInstall }}
===Release.Service===
===Release.Service===
Exposes the releasing service - always Tiller
Exposes the releasing service - always Tiller
==Files==
==Files==
==Capabilities==
==Capabilities==

Revision as of 00:55, 29 August 2019

Internal

Built-in Objects

Built-in Objects

Chart

Exposes all contents of Chart.yaml. An existing field is available as (note leading dot) .Chart.<UpperCasedFirstLetterFieldName>.

Example:

{{ .Chart.Name }}
{{ .Chart.Version }}

Values

Release

Release.Name

Exposes the release name:

{{ .Release.Name }}

Release.Revision

Exposes the release revision:

{{ .Release.Revision }}

Release.Time

Exposes the time of the release:

{{ .Release.Time }}

Release.Namespace

Exposes the namespace to be released info, if the manifest does not override:

{{ .Release.Namespace }}

Release.IsUpgrade

This is set to true if the current operation is an upgrade or rollback.

{{ .Release.IsUpgrade }}

Release.IsInstall

This is set to true if the current operation is an install.

{{ .Release.IsInstall }}

Release.Service

Exposes the releasing service - always Tiller

Files

Capabilities

Template

TODO

Template Comments

# This is a comment
{{- /*
This is another comment
*/ -}}

TODO