deploykit
deploykit copied to clipboard
Multipass templating and conditionals
Doing an if check on a variable that is not defined always equates to true when multipass is enabled. For example:
{{ if (var "/some/var") }}
If multipass is enabled then this resolves to:
{{ if "{{ var `/some/var` }}" }}
Since the value in the conditional is a non-empty string then the if check always evaluates to true.