pod

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPodSpecVolume

func AddPodSpecVolume(spec *v1.PodSpec, volume v1.Volume)

func ContainerAddMounter

func ContainerAddMounter(container *v1.Container, mounter v1.VolumeMount)

func GetPodCondition

func GetPodCondition(status *v1.PodStatus, conditionType v1.PodConditionType) (int, *v1.PodCondition)

GetPodCondition extracts the provided condition from the given status and returns that. Returns nil and -1 if the condition is not present, and the index of the located condition.

func GetPodConditionFromList

func GetPodConditionFromList(conditions []v1.PodCondition, conditionType v1.PodConditionType) (int, *v1.PodCondition)

GetPodConditionFromList extracts the provided condition from the given list of condition and returns the index of the condition and the condition. Returns -1 and nil if the condition is not present.

func GetPodInitializedCondition

func GetPodInitializedCondition(status v1.PodStatus) *v1.PodCondition

GetPodInitializedCondition get pod initialized condition

func GetPodReadyCondition

func GetPodReadyCondition(status v1.PodStatus) *v1.PodCondition

GetPodReadyCondition extracts the pod ready condition from the given status and returns that. Returns nil if the condition is not present.

func GetPodScheduledCondition

func GetPodScheduledCondition(status v1.PodStatus) *v1.PodCondition

GetPodScheduledCondition get pod scheduled condition

func IsContainerReady

func IsContainerReady(pod *v1.Pod, concainername string) bool

func IsContainerRunning

func IsContainerRunning(pod *v1.Pod, concainername string) bool

func IsContainerRunningAndReady

func IsContainerRunningAndReady(pod *v1.Pod, concainername string) bool

func IsCreated

func IsCreated(pod *v1.Pod) bool

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

func IsFailed

func IsFailed(pod *v1.Pod) bool

isFailed returns true if pod has a Phase of PodFailed

func IsHealthy

func IsHealthy(pod *v1.Pod) bool

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

func IsPodInitialized

func IsPodInitialized(pod *v1.Pod) bool

IsPodInitialized returns true if a pod is initialized; false otherwise.

func IsPodInitializedConditionTrue

func IsPodInitializedConditionTrue(status v1.PodStatus) bool

IsPodInitializedConditionTrue returns true if a pod is initialized; false otherwise.

func IsPodReady

func IsPodReady(pod *v1.Pod) bool

IsPodReady returns true if a pod is ready; false otherwise.

func IsPodReadyConditionTrue

func IsPodReadyConditionTrue(status v1.PodStatus) bool

IsPodReadyConditionTrue returns true if a pod is ready; false otherwise.

func IsPodScheduled

func IsPodScheduled(pod *v1.Pod) bool

IsPodScheduled returns true if a pod is scheduled; false otherwise.

func IsPodScheduledConditionTrue

func IsPodScheduledConditionTrue(status v1.PodStatus) bool

IsPodScheduledConditionTrue returns true if a pod is scheduled; false otherwise.

func IsRunning

func IsRunning(pod *v1.Pod) bool

// IsRunning returns true if pod is in the PodRunning Phase

func IsRunningAndReady

func IsRunningAndReady(pod *v1.Pod) bool

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

func IsTerminating

func IsTerminating(pod *v1.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