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 GenReport(specReport ginkgo.SpecReport)
- func GetCoverageReport(nodeNames []string) error
- func GetJournalLogs(node string) (string, error)
- func GetVagrantLog(cErr error) string
- func RestartCluster(nodeNames []string) error
- func RunCmdOnNode(cmd string, nodename string) (string, error)
- func RunCommand(cmd string) (string, error)
- func StartCluster(nodeNames []string) error
- func StopCluster(nodeNames []string) error
- func UpgradeCluster(nodeNames []string, local bool) error
- type Node
- type NodeError
- type ObjIP
- 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 GenReport ¶
func GenReport(specReport ginkgo.SpecReport)
func GetCoverageReport ¶
func GetJournalLogs ¶
func GetVagrantLog ¶
GetVagrantLog returns the logs of on vagrant commands that initialize the nodes and provision K3s on each node. It also attempts to fetch the systemctl logs of K3s on nodes where the k3s.service failed.
func RestartCluster ¶
RestartCluster restarts the k3s service on each node given
func RunCmdOnNode ¶
RunCmdOnNode executes a command from within the given node as sudo
func RunCommand ¶
func StartCluster ¶
StartCluster starts the k3s service on each node given
func StopCluster ¶
StopCluster starts the k3s service on each node given