-
Notifications
You must be signed in to change notification settings - Fork 550
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: provide Talos machine config with field placeholders and docs
For config patching, it's beneficial to have some fields to be present in the config, even with the default (empty) value. At the same time not all fields should be present in all versions of the config, e.g. some config value don't apply to worker node configuration. Empty value and nil value are treated equal by `yaml` library, but Talos encoder can be made more smart to still output empty (non-nil) value to the config, while skipping completely nil fields. This PR implements that via new `talos:"omitonlyifnil"` tag and plus moves docs for such fields into comments under the value. GC'ed pod checkpointer config, so it doesn't get generated even as comments (it was empty by default even for 0.8, so this just removes comments about it). Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
- Loading branch information
Showing
8 changed files
with
194 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.