pod

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2021 License: Apache-2.0 Imports: 2 Imported by: 5

Documentation

Overview

Package pod has helpers to deal with the Pod struct

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)

LookupEnv returns a value for a given key from k8s EnvVar arrays

Types

This section is empty.

Jump to

Keyboard shortcuts

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