v2.0.0-rc2
Pre-release
Pre-release
-
add
required
template helperThis equals the templating function used in Helm.
It provides a way to "require" a specific value to exist, or otherwise
exit the execution of the template parsing.This can be useful when expecting an environment variable, and not
accepting an empty string as value.Example:
password: {{ required "we really need this!" (env "SECRET_PASSWORD") }}
-
add
include
template helperThis equals the templating function used in Helm.
It provides the same functionality as the Golang built-in "template"
function, but returns the produced template string as the return value,
allowing you to pipe the value to another template function.example:
{{ define "foobar" }} foo: bar: baz {{ end }} qux: {{ include "foobar" . | indent 2 }} # qux: # foo: # bar: baz