internal

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TalosctlBin = "talosctl"

Functions

func AddNode

func AddNode(logger *utils.Logger, dir string, opts AddNodeOpts) (*hcloud.Server, error)

func ApplyManifests

func ApplyManifests(logger *utils.Logger, dir string, opts ApplyManifestsOpts) error

func BootstrapCluster

func BootstrapCluster(logger *utils.Logger, dir string, opts BootstrapClusterOpts) error

func DeleteNode

func DeleteNode(logger *utils.Logger, dir string, opts DeleteNodeOpts) error

func DestroyCluster

func DestroyCluster(logger *utils.Logger, dir string, opts DestroyClusterOpts) error

func ReconcilePool

func ReconcilePool(logger *utils.Logger, dir string, opts ReconcilePoolOpts) error

func TalosBootstrap

func TalosBootstrap(cl *cluster.Cluster, serverIP net.IP) (string, error)

func TalosClientVersion

func TalosClientVersion() (string, error)

func TalosGenConfig

func TalosGenConfig(cl *cluster.Cluster, network *hcloud.Network, clusterName string, controlplaneIP net.IP, kubernetesVersion string, withKubespan bool) (string, error)

func TalosKubeconfig

func TalosKubeconfig(cl *cluster.Cluster, serverIP net.IP) (string, error)

func TalosPatchFlannelDaemonSet

func TalosPatchFlannelDaemonSet(cl *cluster.Cluster, jsonPatch string) error

func TalosReset

func TalosReset(cl *cluster.Cluster, serverIP net.IP) (string, error)

Types

type AddNodeOpts

type AddNodeOpts struct {
	ConfigFile   string
	ServerType   string
	Controlplane bool
	NodeName     string
	PoolName     string
	TalosVersion string
}

type ApplyManifestsOpts

type ApplyManifestsOpts struct {
	ConfigFile                     string
	NoHcloudCloudControllerManager bool
	NoHcloudCsiDriver              bool
}

type BootstrapClusterOpts

type BootstrapClusterOpts struct {
	ConfigFile                     string
	ClusterName                    string
	NodeName                       string
	ServerType                     string
	Location                       string
	NetworkZone                    string
	Token                          string
	NoFirewall                     bool
	NoTalosKubespan                bool
	NoHcloudCloudControllerManager bool
	NoHcloudCsiDriver              bool
	TalosVersion                   string
	KubernetesVersion              string
}

type DeleteNodeOpts

type DeleteNodeOpts struct {
	ConfigFile string
	NodeName   string
	KeepServer bool
	Force      bool
}

type DestroyClusterOpts

type DestroyClusterOpts struct {
	ConfigFile string
	Force      bool
}

type ReconcilePoolOpts

type ReconcilePoolOpts struct {
	ConfigFile     string
	PoolName       string
	NodeNamePrefix string
	NodeCount      int
	ServerType     string
	TalosVersion   string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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