Skip to content

Commit

Permalink
[bridge] Actually set deployedTime in ws-manager-bridge (#20194)
Browse files Browse the repository at this point in the history
  • Loading branch information
geropl authored Sep 11, 2024
1 parent d3eccd0 commit c489f17
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions components/ws-manager-bridge/src/bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,11 @@ export class WorkspaceManagerBridge implements Disposable {
}
instance.status.conditions.pullingImages = toBool(status.conditions.pullingImages!);
instance.status.conditions.deployed = toBool(status.conditions.deployed);
if (!instance.deployedTime && instance.status.conditions.deployed) {
// This is the first time we see the workspace pod being deployed.
// Like all other timestamps, it's set when bridge observes it, not when it actually happened (which only ws-manager could decide).
instance.deployedTime = new Date().toISOString();
}
instance.status.conditions.timeout = status.conditions.timeout;
instance.status.conditions.firstUserActivity = mapFirstUserActivity(
rawStatus.getConditions()!.getFirstUserActivity(),
Expand Down

0 comments on commit c489f17

Please sign in to comment.