Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCluster ¶
func CreateCluster(clusters []types.Cluster, logger *utils.Logger, additional []string) []types.Cluster
CreateCluster provisions and configures all clusters in the provided list. It connects to each master node, sets up the cluster, applies addons, and joins workers.
Parameters:
clusters: List of clusters to create. logger: Logger for output. additional: Additional shell commands to run on the master node.
Returns:
Updated list of clusters
func UninstallCluster ¶
UninstallCluster removes all K3s components from the provided clusters. It connects to each master and worker node, runs uninstall scripts, and updates cluster state.
Parameters:
clusters: List of clusters to uninstall. logger: Logger for output.
Returns:
Updated list of clusters and error if any step fails.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.