diff --git a/templates/source.sh b/templates/source.sh new file mode 100644 index 0000000..f30f322 --- /dev/null +++ b/templates/source.sh @@ -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(":") }}