status

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package status contains helpers to observe the status of Kubernetes objects.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeploymentPodsWaitingState

func DeploymentPodsWaitingState(d *appsv1.Deployment,
	pl corelistersv1.PodNamespaceLister,
) (*corev1.ContainerStateWaiting, error)

DeploymentPodsWaitingState collects the Pods owned by the given Deployment and returns the state of the first observed Pod in a "waiting" state, or nil if no Pod is found in that state.

func ExactReason

func ExactReason(state interface{}) string

ExactReason tries to determine the exact reason of a failure from a container state or Knative status condition. The format of the returned reason follows the CamelCased one-word convention described at https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties When a more specific reason can not be determined, the original reason is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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