pods

package
v0.19.2 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CentosImage = "quay.io/centos/centos:8"
)

Variables

This section is empty.

Functions

func DumpEventsForPod added in v0.14.0

func DumpEventsForPod(events []corev1.Event, podNamespace, podName string) string

func ExpectPodToBeRunning added in v0.19.2

func ExpectPodToBeRunning(cli kubernetes.Interface, podNamespace, podName string, timeout time.Duration) *corev1.Pod

func GetByDaemonSet added in v0.19.2

func GetByDaemonSet(cli client.Client, ctx context.Context, daemonset appsv1.DaemonSet) ([]corev1.Pod, error)

func GetByDeployment added in v0.14.0

func GetByDeployment(cli client.Client, ctx context.Context, deployment appsv1.Deployment) ([]corev1.Pod, error)

func GetByRegex

func GetByRegex(cs client.Client, reg string) ([]*corev1.Pod, error)

func GetEventsForPod added in v0.14.0

func GetEventsForPod(k8sCli kubernetes.Interface, ctx context.Context, podNamespace, podName string) ([]corev1.Event, error)

func GetLogsForPod added in v0.19.2

func GetLogsForPod(k8sCli kubernetes.Interface, podNamespace, podName, containerName string) (string, error)

func GuaranteedSleeperPod

func GuaranteedSleeperPod(namespace, schedulerName string) *corev1.Pod

func LogEventsForPod added in v0.14.0

func LogEventsForPod(k8sCli kubernetes.Interface, ctx context.Context, podNamespace, podName string) error

func WaitForPodToBeRunning

func WaitForPodToBeRunning(ctx context.Context, cli kubernetes.Interface, podNamespace, podName string, timeout time.Duration) (*corev1.Pod, error)

func WaitPodsToBeRunningByRegex

func WaitPodsToBeRunningByRegex(pattern string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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