pod

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package pod provides utilities to work with pods.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecInPod

func ExecInPod(ctx context.Context, clset *kubernetes.Clientset, cfg *rest.Config,
	pod *corev1.Pod, cmd string) (stdout, stderr string, err error)

ExecInPod executes a command in a pod.

func TryFor

func TryFor(ctx context.Context, maxRetries int, f func() (bool, error)) (bool, error)

TryFor tries to execute the function f for a maximum of maxRetries times.

Types

This section is empty.

Jump to

Keyboard shortcuts

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