Added source script to set environment variables

This commit is contained in:
2025-11-09 03:06:30 +01:00
parent ea3d1bf0fa
commit 4b72bdb60d

6
templates/source.sh Normal file
View File

@@ -0,0 +1,6 @@
export TALOSCONFIG={{ root }}/configs/talosconfig
{% set paths = [] %}
{%- for cluster_name in nodes|map(attribute="clusterName")|unique -%}
{%- do paths.append(root ~ "/configs/" ~ cluster_name ~ "/kubeconfig") -%}
{% endfor -%}
export KUBECONFIG={{ paths|join(":") }}