Skip to content

v2.0.0-rc2

Pre-release
Pre-release
Compare
Choose a tag to compare
@JeanMertz JeanMertz released this 22 Sep 16:46
· 19 commits to master since this release
  • add required template helper

    This 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 helper

    This 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