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, workspace *common.DevWorkspaceWithConfig) (ready bool)
- func CheckForIgnoredWorkspacePodEvents(workspace *common.DevWorkspaceWithConfig, clusterAPI sync.ClusterAPI) (errMsg string)
- 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, 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 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.
Click to show internal directories.
Click to hide internal directories.