Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrPodCompleted = fmt.Errorf("pod ran to completion")
ErrPodCompleted is returned by PodRunning or PodContainerRunning to indicate that the pod has already reached completed state. Copied from: https://github.com/kubernetes/kubernetes/blob/master/pkg/client/conditions/conditions.go#L30
Functions ¶
func IsPodFailed ¶
IsPodFailed returns true if a pod is in the Failed state; false otherwise.
func IsPodReady ¶
IsPodReady returns true if a pod is ready; false otherwise. It returns an ErrPodCompleted error if the Pod is in api.PodFailed or api.PodSucceeded status phases.
func IsPodSucceeded ¶
IsPodSucceeded returns true if a pod is in the Succeeded state; false otherwise.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.