Documentation ¶
Index ¶
- func CountOfStringInSlice(str string, pods []Pod) int
- func CreateCluster(nodeOS string, serverCount, agentCount int) ([]string, []string, error)
- func CreateLocalCluster(nodeOS string, serverCount, agentCount int) ([]string, []string, error)
- func DeployWorkload(workload, kubeconfig string, hardened bool) (string, error)
- func DestroyCluster() error
- func FetchClusterIP(kubeconfig string, servicename string, dualStack bool) (string, error)
- func FetchIngressIP(kubeconfig string) ([]string, error)
- func FetchNodeExternalIP(nodename string) (string, error)
- func GenKubeConfigFile(serverName string) (string, error)
- func GetVagrantLog() string
- func RestartCluster(nodeNames []string) error
- func RunCmdOnNode(cmd string, nodename string) (string, error)
- func RunCommand(cmd string) (string, error)
- func UpgradeCluster(serverNodeNames []string, agentNodeNames []string) error
- type Node
- type Pod
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CountOfStringInSlice ¶
func CreateCluster ¶
func CreateLocalCluster ¶
CreateLocalCluster creates a cluster using the locally built k3s binary. The vagrant-scp plugin must be installed for this function to work. The binary is deployed as an airgapped install of k3s on the VMs. This is intended only for local testing purposes when writing a new E2E test.
func DeployWorkload ¶
func DestroyCluster ¶
func DestroyCluster() error
func FetchClusterIP ¶
func FetchIngressIP ¶
func FetchNodeExternalIP ¶
func GenKubeConfigFile ¶
func GetVagrantLog ¶
func GetVagrantLog() string
func RestartCluster ¶
RestartCluster restarts the k3s service on each node given
func RunCmdOnNode ¶
RunCmdOnNode executes a command from within the given node
func RunCommand ¶
RunCommand executes a command on the host
func UpgradeCluster ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.