util

package
v1.26.3-rke2r1-build20... Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Rke2Cmd

func Rke2Cmd(cmdName string, cmdArgs ...string) (string, error)

Rke2Cmd launches the provided Rke2 command via exec. Command blocks until finished. Kubectl commands can also be passed. Command output from both Stderr and Stdout is provided via string. cmdEx1, err := Rke2Cmd("etcd-snapshot", "ls") cmdEx2, err := Rke2Cmd("kubectl", "get", "pods", "-A")

func Rke2Ready

func Rke2Ready() bool

func Rke2ServerArgs

func Rke2ServerArgs() ([]string, error)

Rke2ServerArgs returns the list of arguments that the rke2 server launched with

func ServerArgsPresent

func ServerArgsPresent(neededArgs []string) bool

ServerArgsPresent checks if the given arguments are found in the running k3s server

Types

This section is empty.

Jump to

Keyboard shortcuts

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