truenas-go-sdk icon indicating copy to clipboard operation
truenas-go-sdk copied to clipboard

Automatic translation script for cfg/ yaml files

Open das-intensity opened this issue 1 year ago • 0 comments

The new ./cfg/translate.py script translates specific routes from a cfg/<release>_original.yaml file into the corresponding cfg/<release>.yaml file.

It attempts to maintain formatting on routes it's not adding/updating.

For example, to update bluefin.yaml with /interface and /pool routes (from bluefin_original.yaml):

  ./cfg/translate.py bluefin /interface /pool

The final goal of the translate script is to allow adding new routes to the SDK with manual editing, and without making unrelated unintentional changes to the "curated" yaml.

Some formatting changes are also added in this PR as they weren't consistent with the translation.

das-intensity avatar Aug 06 '23 23:08 das-intensity