watcher

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPods

func CheckPods(
	ctx context.Context,
	kubeconfigPath,
	namespace string,
	opts metav1.ListOptions,
	f func(context.Context, *corev1.Pod) error) error

CheckPods will firstly get a list of Pods by given list options. Then it will perform the action defined by the function parameter to deal with each Pod.

func PendingPodsWatcher

func PendingPodsWatcher(ctx context.Context, namespace string, watchInterval time.Duration)

PendingPodsWatcher watches the Pods in Pending phase and perform some actions.

Types

This section is empty.

Jump to

Keyboard shortcuts

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