Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions components/ws-manager-mk2/controllers/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,12 @@ func (r *WorkspaceReconciler) updateWorkspaceStatus(ctx context.Context, workspa
if workspace.Status.Runtime.HostIP == "" && pod.Status.HostIP != "" {
workspace.Status.Runtime.HostIP = pod.Status.HostIP
}
if workspace.Status.Runtime.PodIP == "" && pod.Status.PodIP != "" {
workspace.Status.Runtime.PodIP = pod.Status.PodIP
}
if workspace.Status.Runtime.PodName == "" && pod.Name != "" {
workspace.Status.Runtime.PodName = pod.Name
}

workspace.Status.Runtime.PodIP = pod.Status.PodIP

// Check if the node has disappeared. If so, ws-daemon has also disappeared and we need to
// mark the workspace backup as failed if it didn't complete disposal yet.
// Otherwise, the workspace will be stuck in the Stopping phase forever.
Expand Down
Loading