e2e

package module
v0.0.0-...-a82ac4f Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CountOfStringInSlice

func CountOfStringInSlice(str string, pods []Pod) int

func CreateCluster

func CreateCluster(nodeOS string, serverCount, agentCount int) ([]string, []string, error)

func DeployWorkload

func DeployWorkload(workload, kubeconfig string, arch bool) (string, error)

func DestroyCluster

func DestroyCluster() error

func FetchClusterIP

func FetchClusterIP(kubeconfig string, servicename string) (string, error)

func FetchIngressIP

func FetchIngressIP(kubeconfig string) ([]string, error)

func FetchNodeExternalIP

func FetchNodeExternalIP(nodename string) (string, error)

func GenKubeConfigFile

func GenKubeConfigFile(serverName string) (string, error)

func GetVagrantLog

func GetVagrantLog() string

func RestartCluster

func RestartCluster(nodeNames []string) error

RestartCluster restarts the k3s service on each node given

func RunCmdOnNode

func RunCmdOnNode(cmd string, nodename string) (string, error)

RunCmdOnNode executes a command from within the given node

func RunCommand

func RunCommand(cmd string) (string, error)

RunCommand executes a command on the host

func UpgradeCluster

func UpgradeCluster(serverNodeNames []string, agentNodeNames []string) error

Types

type Node

type Node struct {
	Name       string
	Status     string
	Roles      string
	InternalIP string
	ExternalIP string
}

func ParseNodes

func ParseNodes(kubeConfig string, print bool) ([]Node, error)

type Pod

type Pod struct {
	NameSpace string
	Name      string
	Ready     string
	Status    string
	Restarts  string
	NodeIP    string
	Node      string
}

func ParsePods

func ParsePods(kubeconfig string, print bool) ([]Pod, error)

Jump to

Keyboard shortcuts

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