Skip to content

Commit

Permalink
fix(cli): consider sleeping workspace as ready, will automatically be…
Browse files Browse the repository at this point in the history
… woken up when connecting
  • Loading branch information
pascalbreuninger committed Jun 28, 2024
1 parent 7dba913 commit 9f518af
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/pro/provider/up.go
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,11 @@ func getParametersFromEnvironment(ctx context.Context, kubeClient kube.Interface
}

func isReady(workspace *managementv1.DevPodWorkspaceInstance) bool {
// Sleeping is considered ready in this context. The workspace will be woken up as soon as we connect to it
if workspace.Status.Phase == storagev1.InstanceSleeping {
return true
}

return workspace.Status.Phase == storagev1.InstanceReady
}

Expand Down

0 comments on commit 9f518af

Please sign in to comment.