Default variables:
To define default variables, we need to define the variables in proffer template file itself.
Follow the below steps to define the default variables:
- Go to the proffer template file
- Define the default variables using below syntax
# proffer.yml
---
vars:
defaultVar1: test
defaultVar2: test2
defaultVar3:
x: 1
defaultVar4:
- 1
- 2
resources:
...
- Use the defied variable
# proffer.yml
x:
Limitations:
All the variables defined in the template configuration are constant variable. they can’t contain
template evaluation or any evaluation statements like env
, default
.