Transform
Transforms the user’s configuration file (values.yaml
) through all required migration steps from the current version to the target Witboost version.
The transform command applies a number of transformation to your configuration file, depending on your current
and target
version.
These rules are pre-defined by the Witboost team, and are fetched by either the init
or the pull
commands.
note
init
command is a pre-requisite and should be run before attempting to use transform
command.
Usage
Usage: witboost-infra transform [options]
Transforms a values.yaml provided by the user
Options:
--user-values <string> path to the values.yaml
--set-target <string> configures the target version
--rule-folder <string> (optional) path to the folder where rule yaml files are stored.
--output-path <string> (optional) path for the output file.
-h, --help display help for command
Example
./witboost-infra transform --user-values values.yaml --set-target x.y.z
Output
The transform command generates the final transformed values.yaml
file in the default output directory unless a custom location is specified by the user. The file is created with the name transformed_<input_file_name>.yaml
.