Skip to content

Commit

Permalink
parse clusterName from config
Browse files Browse the repository at this point in the history
  • Loading branch information
kvaps committed Dec 17, 2023
1 parent 06292c7 commit 9cb202f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions talos-bootsrtap
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ if [ ! -f controlplane.yaml ]; then
default_cluster_name=talos
fi
cluster_name=$(dialog --keep-tite --title talos-bootstrap --inputbox "Enter cluster name:" 8 40 "$default_cluster_name" 3>&1 1>&2 2>&3) || exit 0
else
cluster_name=$(awk '/cluster:$/ {while(getline) {if ($1 == "clusterName:") {print $2; exit}}}' controlplane.yaml)
fi

# Screen: Enter networks to scan
Expand Down

0 comments on commit 9cb202f

Please sign in to comment.