Skip to content

Commit 9f518af

Browse files
fix(cli): consider sleeping workspace as ready, will automatically be woken up when connecting
1 parent 7dba913 commit 9f518af

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cmd/pro/provider/up.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,11 @@ func getParametersFromEnvironment(ctx context.Context, kubeClient kube.Interface
335335
}
336336

337337
func isReady(workspace *managementv1.DevPodWorkspaceInstance) bool {
338+
// Sleeping is considered ready in this context. The workspace will be woken up as soon as we connect to it
339+
if workspace.Status.Phase == storagev1.InstanceSleeping {
340+
return true
341+
}
342+
338343
return workspace.Status.Phase == storagev1.InstanceReady
339344
}
340345

0 commit comments

Comments
 (0)