Documentation ¶
Index ¶
- func CountOfStringInSlice(str string, pods []Pod) int
- func CreateCluster(nodeOS string, serverCount int, agentCount int) ([]string, []string, error)
- func DeleteWorkload(workload, kubeconfig string) error
- func DeployWorkload(workload string, kubeconfig string) (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 GetVagrantLog(cErr error) string
- func PodIPsUsingLabel(kubeConfigFile string, label string) ([]string, error)
- 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 NodeError
- type Pod
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CountOfStringInSlice ¶
func CreateCluster ¶
func DeleteWorkload ¶
DeleteWorkload Deletes the content of a manifest file previously applied
func DestroyCluster ¶
func DestroyCluster() error
func FetchClusterIP ¶
func FetchIngressIP ¶
func FetchNodeExternalIP ¶
func GenKubeConfigFile ¶
func GenReport ¶
func GenReport(specReport ginkgo.SpecReport)
GenReport returns the relevant lines from test results in json format
func GetVagrantLog ¶
GetVagrantLog returns the logs of on vagrant commands that initialize the nodes and provision RKE2 on each node. It also attempts to fetch the systemctl logs of RKE2 on nodes where the rke2.service failed.
func PodIPsUsingLabel ¶
PodIPsUsingLabel returns the IPs of the pods with a label (only single-stack supported)
func RestartCluster ¶
RestartCluster restarts the rke2 service on each server-agent given
func RunCmdOnNode ¶
RunCmdOnNode executes a command from within the given node
func RunCommand ¶
RunCommand execute a command on the host
func UpgradeCluster ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.