From 9f518afaa29f3de8b60d8367d3b5e7d552150680 Mon Sep 17 00:00:00 2001 From: Pascal Breuninger Date: Fri, 28 Jun 2024 18:13:07 +0200 Subject: [PATCH] fix(cli): consider sleeping workspace as ready, will automatically be woken up when connecting --- cmd/pro/provider/up.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/pro/provider/up.go b/cmd/pro/provider/up.go index 01dc4d0d9..5093e95df 100644 --- a/cmd/pro/provider/up.go +++ b/cmd/pro/provider/up.go @@ -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 }