Documentation ¶
Overview ¶
Package status contains helpers to observe the status of Kubernetes objects.
Index ¶
Constants ¶
const ( ReasonAppRuntimeFailure = "AppRuntimeFailure" ReasonBadContainerImage = "BadContainerImage" )
Variables ¶
This section is empty.
Functions ¶
func DeploymentPodsWaitingState ¶
func DeploymentPodsWaitingState(d *appsv1.Deployment, pi coreclientv1.PodInterface) (*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.