Description
As raised by @harshad16 in #210, there is an issue with the generateWorkspaceState()
method in the Workspace controller.
The issue is that we only look at the main
container's status when checking for issues like ImagePullBackOff
, but there could be multiple container
or initContainers
with issues preventing the Pod from becoming ready.
We need to update the following code so that it looks at all the container statuses in the Pod's status.containerStatuses
and status.initContainerStatuses
and looks for any which are in a "waiting" state with CrashLoopBackOff
or ImagePullBackOff
reasons, and then aggregate the errors into the stateMessage.
notebooks/workspaces/controller/internal/controller/workspace_controller.go
Lines 1051 to 1076 in 6f14790
NOTE: because there could be different reasons for each one being in a waiting state, we should FIRST look for any ImagePullBackOff
reasons and then only return all those as the state, then SECOND check for CrashLoopBackOff
so we present the most pressing issues to the user in the state first.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status