kubectl

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func Exec

func Exec(args []string) error

Exec replaces the current process with a kubectl invocation

func ExecToString

func ExecToString(args []string) (string, error)

ExecToString runs a kubectl subcommand and returns stdout as a string

func PodExecString

func PodExecString(pod *apiv1.Pod, args []string) (string, error)

PodExecString takes a pod and a command, uses kubectl exec to run the command in the pod and returns stdout as a string

func Spawn

func Spawn(args []string) error

Spawn the command and wait for completion

Types

This section is empty.

Jump to

Keyboard shortcuts

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