This PR adds named variables support to variables: in the configuration.
If variables is a key-value map, then vars[] can be indexed by name. Moreover, the variables are injected when evaluating the template and are directly available by name, which greatly improves the readability of a yaml configuration that uses templates, namely:
This PR adds named variables support to
variables:
in the configuration.If
variables
is a key-value map, thenvars[]
can be indexed by name. Moreover, the variables are injected when evaluating the template and are directly available by name, which greatly improves the readability of a yaml configuration that uses templates, namely:This change is backwards-compatible with the current
vars[n]
syntax.