Improve how talosconfig is set during config generation

This commit is contained in:
2025-11-09 05:10:12 +01:00
parent 73c8797dfc
commit db43cf50fd

View File

@@ -31,8 +31,8 @@ talosctl gen config {{ cluster.name }} https://{{ cluster.controlPlaneIp }}:6443
{% endfor %}
# Create merged talosconfig
export TALOSCONFIG=${CONFIGS}/talosconfig
TALOSCONFIG=${CONFIGS}/talosconfig
rm -f ${TALOSCONFIG}
{% for cluster in clusters -%}
talosctl config merge ${CONFIGS}/{{ cluster.name }}/talosconfig
talosctl config --talosconfig=${TALOSCONFIG} merge ${CONFIGS}/{{ cluster.name }}/talosconfig
{% endfor %}