Helm Variables: Difference between revisions
Jump to navigation
Jump to search
Line 4: | Line 4: | ||
* [[Helm_Templates#Variables|Helm Templates]] | * [[Helm_Templates#Variables|Helm Templates]] | ||
=Overview= | =Overview= | ||
A variable is a named reference to another object. It is assigned and referred using the $<name> syntax: | A variable is a named reference to another object. It is assigned and referred using the $<name> syntax. := is used as assignment operator. | ||
<syntaxhighlight lang='yaml'> | <syntaxhighlight lang='yaml'> | ||
{{- $relname := .Release.Name -}} | {{- $relname := .Release.Name -}} |
Revision as of 00:56, 8 October 2020
External
Internal
Overview
A variable is a named reference to another object. It is assigned and referred using the $<name> syntax. := is used as assignment operator.
{{- $relname := .Release.Name -}}
...
data:
release: {{ $relname }}
Variables are less frequently used, as an alternative preferred construct is the named template.