podutils

package
v1.1.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsCreated

func IsCreated(pod *corev1.Pod) bool

isCreated returns true if pod has been created and is maintained by the API server

func IsFailed

func IsFailed(pod *corev1.Pod) bool

isFailed returns true if pod has a Phase of PodFailed

func IsHealthy

func IsHealthy(pod *corev1.Pod) bool

isHealthy returns true if pod is running and ready and has not been terminated

func IsPending

func IsPending(pod *corev1.Pod) bool

isPending returns true if pod has a Phase of PodPending

func IsPodCordon

func IsPodCordon(pod *corev1.Pod) bool

IsPodCordon returns true if and only if the delete annotation is nodeset to true.

func IsRunning

func IsRunning(pod *corev1.Pod) bool

isRunning returns true if pod is in the PodRunning Phase.

func IsRunningAndAvailable

func IsRunningAndAvailable(pod *corev1.Pod, minReadySeconds int32) bool

func IsRunningAndReady

func IsRunningAndReady(pod *corev1.Pod) bool

isRunningAndReady returns true if pod is in the PodRunning Phase, if it has a condition of PodReady.

func IsSucceeded

func IsSucceeded(pod *corev1.Pod) bool

isSucceeded returns true if pod has a Phase of PodSucceeded

func IsTerminating

func IsTerminating(pod *corev1.Pod) bool

isTerminating returns true if pod's DeletionTimestamp has been set

Types

This section is empty.

Jump to

Keyboard shortcuts

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