Fixed Variables
If the source is none, DevSpace will use the default value as value for this config variable.
images:
database:
image: "mysql:${MYSQL_VERSION}"
vars:
- name: MYSQL_VERSION
source: none
default: "5.5"
Configuration
name
The name option expects a string stating the name of the config variable that will be used to reference it within the remainder of the configuration.
The name of a config variable must be unique and is mandatory when defining a config variable.
default
The default option expects a string defining the default value for the variable.
If a default value is specified, DevSpace will assume the type of the default value as the type for the variable, i.e. when default: "123" is defined and a value of 123 (int) is provided it would be casted to "123" (string). To explicitly use the value of a variable as a string within devspace.yaml, use $!{VAR_NAME} instead of ${VAR_NAME}.
If using source: none, the default value is the fixed value for this variable. It will only be changed using a config patch.