mirror of
https://github.com/siderolabs/talos.git
synced 2025-10-08 22:21:16 +02:00
Short version is: move from global variables/`init()` function into explicit functions. `docgen` was updated to skip creating any top-level global variables, now `Doc` information is generated on the fly when it is accessed. Talos itself doesn't marshal the configuration often, so in general it should never be accessed for Talos (but will be accessed e.g. for `talosctl`). Machine config examples were changed manually from variables to functions returning a value and moved to a separate file. There are no changes to the output of `talosctl gen config`. There is a small change to the generated documentation, which I believe is a correct one, as previously due to value reuse it was clobbered with other data. Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>