feat: Added config validation

This commit is contained in:
2026-02-20 05:33:50 +01:00
parent 7b29763230
commit 08c1d0c605
15 changed files with 3077 additions and 36 deletions

View File

@@ -12,10 +12,10 @@ talosctl gen config {{ node.cluster.name }} https://{{ node.cluster.controlPlane
--install-image factory.talos.dev/metal-installer/{{ node.schematicId }}:v{{ node.talosVersion }} \
{% for patch in node.patches -%}
{# The double call to tojson is needed to properly escape the patch (object -> json -> string) -#}
--config-patch {{ patch|tojson|tojson }} \
--config-patch {{ helper.model_dump_json(patch)|tojson }} \
{% endfor -%}
{% for patch in node.patchesControlPlane -%}
--config-patch-control-plane {{ patch|tojson|tojson }} \
--config-patch-control-plane {{ helper.model_dump_json(patch)|tojson }} \
{% endfor -%}
--with-docs=false \
--with-examples=false \