pod

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPodCondition

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

GetPodCondition returns:

  1. The index of the condition, or -1 if not present.
  2. The PodCondition.

func GetPodStatusString

func GetPodStatusString(pod corev1.Pod) string

GetPodStatusString gives a summary of the pods state.

func IsPodReady

func IsPodReady(pod *corev1.Pod) bool

IsPodReady returns whether the pod status is ready or not.

func LookupEnv

func LookupEnv(env []corev1.EnvVar, name string) (string, bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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