package
0.0.5
Repository: https://github.com/andrei-don/multi-k8s.git
Documentation: pkg.go.dev

# Functions

AnimateDots animates the dots during long running commands.
ConfigureControlPlane takes the list of controller instances structs from FilterNodes.
ConfigureControlPlaneHA provisions the controller nodes.
ConfigurePostDeploy adds autocomplete and aliases for kubectl.
ConfigureWorkerNodes takes the list of worker instances structs from FilterNodes.
CreateHostnamesFile takes the list of multipass.Instance structs from DeployClusterVMs and creates the hostnames file on each instance.
CreateLocalAdmin generates a CSR for cluster access from the local laptop and approves it.
DeleteClusterVMs takes the list of nodes generated by GetCurrentNodes as input and deletes each one with the multipass.Delete method.
DeployClusterVMs deploys the VMs needed for the controller/worker nodes.
DeployHAProxy deploys the HAProxy VM and configures it to work with the controller nodes.
DownloadAndRunBootstrapScripts downloads the scripts located in the multi-k8s-provisioning-scripts repo and runs them on all nodes.
FilterNodes takes the list of all instance structs as inputs and returns a list of instance structs corresponding to controller or worker nodes only.
FilterNodesListCmd filters through the 'multipass list' command and returns only the cluster nodes in the same 'multipass list' format (assuming that there are other unrelated multipass nodes as well).
GetCurrentNodes takes the filtered output from FilterNodesListCmd and returns a list of cluster node names.
PostDeployCleanup removes the temp files created during the bootstrap process.

# Constants

BootstrapRepoRaw is the repo hosting the provisioning scripts.