pod

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package pod contains utilities to deal with Pod objects.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AreContainersEqual added in v0.3.2

func AreContainersEqual(previous, updated []corev1.Container) bool

AreContainersEqual returns whether two container lists are equal according to the fields that can be modified after start-up time (i.e. the image field).

func IsPodReady

func IsPodReady(pod *corev1.Pod) (ready bool, reason string)

IsPodReady returns true if a pod is ready; false otherwise. It also returns a reason (as provided by Kubernetes).

func IsPodSpecEqual added in v0.3.2

func IsPodSpecEqual(previous, updated *corev1.PodSpec) bool

IsPodSpecEqual returns whether two pod specs are equal according to the fields that can be modified after start-up time. Refer to the following link for more information: https://kubernetes.io/docs/concepts/workloads/pods/#pod-update-and-replacement This function is implemented custom instead of relying on reflect.DeepEqual or alike for performance reasons, given the possibly high execution rate when dealing with pod reflection.

Types

This section is empty.

Jump to

Keyboard shortcuts

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