kubernetes

package
v8.12.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

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

func IsPodFailed(pod *api.Pod) bool

IsPodFailed returns true if a pod is in the Failed state; false otherwise.

func IsPodReady

func IsPodReady(pod *api.Pod) (bool, error)

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

func IsPodSucceeded(pod *api.Pod) bool

IsPodSucceeded returns true if a pod is in the Succeeded state; false otherwise.

Types

This section is empty.

Jump to

Keyboard shortcuts

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