Skip to content

Commit 2a16da6

Browse files
committed
Undo ready status change, refactored #17114
1 parent fa3d8a3 commit 2a16da6

File tree

1 file changed

+1
-4
lines changed
  • components/ws-manager-mk2/controllers

1 file changed

+1
-4
lines changed

components/ws-manager-mk2/controllers/status.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,7 @@ func (r *WorkspaceReconciler) updateWorkspaceStatus(ctx context.Context, workspa
148148
case pod.Status.Phase == corev1.PodRunning:
149149
var ready bool
150150
for _, cs := range pod.Status.ContainerStatuses {
151-
if cs.Ready || cs.State.Terminated != nil {
152-
// If container is terminated, it's been ready, we don't want to move back to initializing.
153-
// We will reconcile the termination state once the pod phase is updated to reflect the
154-
// terminated container.
151+
if cs.Ready {
155152
ready = true
156153
break
157154
}

0 commit comments

Comments
 (0)