status

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckContainerStatusForFailure

func CheckContainerStatusForFailure(containerStatus *corev1.ContainerStatus, ignoredEvents []string) (ok bool, reason string)

func CheckDeploymentConditions

func CheckDeploymentConditions(deployment *appsv1.Deployment) (healthy bool, errorMsg string)

func CheckDeploymentStatus

func CheckDeploymentStatus(deployment *appsv1.Deployment) (ready bool)

func CheckPodEvents

func CheckPodEvents(pod *corev1.Pod, workspaceID string, ignoredEvents []string, clusterAPI sync.ClusterAPI) (msg string, err error)

func CheckPodsState

func CheckPodsState(workspaceID string, namespace string, labelSelector k8sclient.MatchingLabels, ignoredEvents []string,
	clusterAPI sync.ClusterAPI) (stateMsg string, checkFailure error)

checkPodsState checks if workspace-related pods are in an unrecoverable state. A pod is considered to be unrecoverable if it has a container with one of the containerFailureStateReasons states, or if an unrecoverable event (with reason matching unrecoverablePodEventReasons) has the pod as the involved object. Returns optional message with detected unrecoverable state details

error if any happens during check

Types

This section is empty.

Jump to

Keyboard shortcuts

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