Module functions

Module functions 

Source
Expand description

Template functions (global functions available in templates)

Functions§

coalesce
Return first non-empty value
dict
Create a dict from key-value pairs
dig
Deep get with path and default value
fail
Fail with a custom error message
get
Get a value with a default if undefined
list
Create a list from values
lookup
Kubernetes resource lookup (Helm-compatible)
now
Get current timestamp
printf
Printf-style formatting
set
Set a key in a dict (returns new dict, original unchanged)
ternary
Ternary operator
tofloat
Convert a value to a float
toint
Convert a value to an integer
tostring
Convert a value to a string representation
tpl
Evaluate a string as a template (Helm’s tpl function)
tpl_ctx
Evaluate a string as a template with full context (convenience version)
unset
Remove a key from a dict (returns new dict, original unchanged)
uuidv4
Generate a UUID (v4)