Skip to content

Commit c489f17

Browse files
authored
[bridge] Actually set deployedTime in ws-manager-bridge (#20194)
1 parent d3eccd0 commit c489f17

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

components/ws-manager-bridge/src/bridge.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,11 @@ export class WorkspaceManagerBridge implements Disposable {
316316
}
317317
instance.status.conditions.pullingImages = toBool(status.conditions.pullingImages!);
318318
instance.status.conditions.deployed = toBool(status.conditions.deployed);
319+
if (!instance.deployedTime && instance.status.conditions.deployed) {
320+
// This is the first time we see the workspace pod being deployed.
321+
// Like all other timestamps, it's set when bridge observes it, not when it actually happened (which only ws-manager could decide).
322+
instance.deployedTime = new Date().toISOString();
323+
}
319324
instance.status.conditions.timeout = status.conditions.timeout;
320325
instance.status.conditions.firstUserActivity = mapFirstUserActivity(
321326
rawStatus.getConditions()!.getFirstUserActivity(),

0 commit comments

Comments
 (0)