Documentation ¶
Index ¶
- func CheckContainerStatusForFailure(containerStatus *corev1.ContainerStatus, ignoredEvents []string) (ok bool, reason string)
- func CheckDeploymentConditions(deployment *appsv1.Deployment) (healthy bool, errorMsg string)
- func CheckDeploymentStatus(deployment *appsv1.Deployment) (ready bool)
- func CheckPodEvents(pod *corev1.Pod, workspaceID string, ignoredEvents []string, ...) (msg string, err error)
- func CheckPodsState(workspaceID string, namespace string, labelSelector k8sclient.MatchingLabels, ...) (stateMsg string, checkFailure error)
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 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.
Click to show internal directories.
Click to hide internal directories.