{"modulePath":"github.com/devfile/devworkspace-operator","version":"v1.1.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package status\n\n## Functions\n\n```go\nfunc CheckContainerStatusForFailure(containerStatus *corev1.ContainerStatus, ignoredEvents []string) (ok bool, reason string)\n```\n\n```go\nfunc CheckDeploymentConditions(deployment *appsv1.Deployment) (healthy bool, errorMsg string)\n```\n\n```go\nfunc CheckDeploymentStatus(deployment *appsv1.Deployment, workspace *common.DevWorkspaceWithConfig) (ready bool)\n```\n\n```go\nfunc CheckForIgnoredWorkspacePodEvents(workspace *common.DevWorkspaceWithConfig, clusterAPI sync.ClusterAPI) (errMsg string)\n```\nReturns 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.\n\n```go\nfunc CheckPodEvents(pod *corev1.Pod, workspaceID string, ignoredEvents []string, clusterAPI sync.ClusterAPI) (msg string, err error)\n```\n\n```go\nfunc CheckPodsState(workspaceID string, namespace string, labelSelector k8sclient.MatchingLabels, ignoredEvents []string,\n\tclusterAPI sync.ClusterAPI) (stateMsg string, checkFailure error)\n```\ncheckPodsState 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\n\n","path":"github.com/devfile/devworkspace-operator/pkg/library/status","name":"status","synopsis":"","isRedistributable":true}
