status

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 11 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, workspace *common.DevWorkspaceWithConfig) (ready bool)

func CheckForIgnoredWorkspacePodEvents added in v0.20.0

func CheckForIgnoredWorkspacePodEvents(workspace *common.DevWorkspaceWithConfig, clusterAPI sync.ClusterAPI) (errMsg string)

Returns an error message if the workspace related pods are in an unrecoverable state, which may have been caused by an ignoredUnrecoverableEvent. Otherwise, en empty string is returned.

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 or 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