operatorkclient

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: MIT Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClientConfig

func GetClientConfig() *rest.Config

func GetPodContainerLogs

func GetPodContainerLogs(ctx context.Context, namespace string, podName string, containerName string, sinceTime *metav1.Time) (string, error)

func InitializeOperatorCoreClientSet

func InitializeOperatorCoreClientSet()

func RunCommandInPod

func RunCommandInPod(command, containerName, podName, namespace string, stdin io.Reader) (string, error)

RunCommandInPod runs a command in a container with default 10 sec timeout

func RunCommandInPodWithContextAndTimeout

func RunCommandInPodWithContextAndTimeout(ctx context.Context, timeout time.Duration, command, containerName, podName, namespace string, stdin io.Reader) (string, error)

func RunCommandInPodWithTimeout

func RunCommandInPodWithTimeout(timeout time.Duration, command, containerName, podName, namespace string, stdin io.Reader) (string, error)

RunCommandInPodWithTimeout runs a command in a container with specified timeout. Timeout can't be less 1ms

Types

This section is empty.

Jump to

Keyboard shortcuts

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