Helm Templates: Difference between revisions
Jump to navigation
Jump to search
(→Chart) |
|||
Line 16: | Line 16: | ||
==<tt>Values</tt>== | ==<tt>Values</tt>== | ||
==<tt>Release</tt>== | ==<tt>Release</tt>== | ||
===<tt>Release.Name</tt>=== | |||
{{ .Release.Name}} | |||
===<tt>Release.Time</tt>=== | |||
{{ .Release.Time}} | |||
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. | |||
Release.IsUpgrade: This is set to true if the current operation is an upgrade or rollback. | |||
Release.IsInstall: This is set to true if the current operation is an install. | |||
==<tt>Files</tt>== | ==<tt>Files</tt>== | ||
==<tt>Capabilities</tt>== | ==<tt>Capabilities</tt>== |
Revision as of 00:47, 29 August 2019
Internal
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
Template:.Release.Name
Release.Time
Template:.Release.Time
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. Release.IsUpgrade: This is set to true if the current operation is an upgrade or rollback. Release.IsInstall: This is set to true if the current operation is an install.
Files
Capabilities
Template
TODO
Template Comments
# This is a comment
{{- /* This is another comment */ -}}
TODO
- https://helm.sh/docs/chart_template_guide/#the-chart-template-developer-s-guide
- https://helm.sh/docs/chart_best_practices/#templates
- https://helm.sh/docs/developing_charts/#templates-and-values
- https://helm.sh/docs/developing_charts/#know-your-template-functions
- https://helm.sh/docs/developing_charts/#quote-strings-don-t-quote-integers
- https://helm.sh/docs/developing_charts/#using-the-include-function
- https://helm.sh/docs/developing_charts/#using-the-required-function
- https://helm.sh/docs/developing_charts/#using-the-tpl-function
- https://helm.sh/docs/developing_charts/#creating-image-pull-secrets
- https://helm.sh/docs/developing_charts/#automatically-roll-deployments-when-configmaps-or-secrets-change
- https://helm.sh/docs/developing_charts/#tell-tiller-not-to-delete-a-resource
- https://helm.sh/docs/developing_charts/#using-partials-and-template-includes
- https://helm.sh/docs/chart_best_practices/#pods-and-podtemplates
- https://helm.sh/docs/chart_best_practices/#images
- https://helm.sh/docs/chart_best_practices/#imagepullpolicy
- https://helm.sh/docs/chart_best_practices/#podtemplates-should-declare-selectors