feat(config)!: controlPlane
and worker
is now type of NodeConfigs
#303
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This will allow all
NodeConfigs
fields to be applicable on node group(
controlPlane
orworker
depending on node type) or per node level.The config will be "merged" with everything defined on per node level
take precedence, except for
patches
andextraManifests
to keep thebehavior before this commit. Patches and extaManifests defined on both
node and node group level will be appended instead.
There are 2 new node options to change the behavior of
patches
andextraManifests
when defined at both the node and node group level.Which are:
overridePatches
andoverrideExtraManifests
. By settingthem to
true
will make thepatches
andextraManifests
defined innode level to override the ones defined in node group level.
The config validation is now done after the "merging" is done for each
node. So, i.e when you define
schematic
incorrectly incontrolPlane
struct, you might see the validation says you have incorrect
nodes[0].schematic
instead assumingnodes[0]
is a controlPlane node.BREAKING CHANGE: This commit also remove all the deprecated fields which
are:
talosImageURL
inlinePatch
configPatches
nodes[].extensions