mirror of
https://github.com/siderolabs/talos.git
synced 2025-10-08 06:01:12 +02:00
There should be no functional change with this PR. The primary driver is supporting strategic merge configuration patches. For such type of patches machine config should be loaded from incomplete fragments, so it becomes critically important to distinguish between a field having zero value vs. field being set in YAML. E.g. with following struct: ```go struct { AEnabled *bool `yaml:"a"` } ``` It's possible to distinguish between: ```yaml a: false ``` and no metion of `a` in YAML. Merging process trewats zero values as "not set" (skips them when merging), so it's important to allow overriding value to explicit `false`. Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>