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: 4 modules, 5 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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