health

package
v0.0.0-...-25f5b1c Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ImagePullBackOff is unhealthy container state
	ImagePullBackOff = "ImagePullBackOff"
	// CrashLoopBackOff is unhealthy container state
	CrashLoopBackOff = "CrashLoopBackOff"
)

Variables

This section is empty.

Functions

func DaemonSetsRecreated

func DaemonSetsRecreated(client k8sclient.Client, options *k8sclient.ListOptions) (bool, error)

DaemonSetsRecreated checks the number of pod replicas managed by DaemonSets

func PodManagersRecreated

func PodManagersRecreated(client k8sclient.Client, options *k8sclient.ListOptions) (bool, error)

PodManagersRecreated does verify that ReplicaSets, Deployments, Statefulsets and DeploymentConfigs pod replicas match expected number

func PodsUnhealthy

func PodsUnhealthy(client k8sclient.Client, options *k8sclient.ListOptions) (*[]unstructured.Unstructured, error)

PodsUnhealthy would collect unhealthy pods in a specific namespace

Types

This section is empty.

Jump to

Keyboard shortcuts

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