cluster

package
v1.0.29 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 4, 2025 License: MIT Imports: 9 Imported by: 0

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

func UninstallCluster(clusters []types.Cluster, logger *utils.Logger) ([]types.Cluster, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL