-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ws-manager] Recognise terminated pods as running
- Loading branch information
Showing
10 changed files
with
1,267 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
components/ws-manager/pkg/manager/testdata/actOnPodEvent_failedLogs_RUNNING00.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"actions": [ | ||
{ | ||
"Func": "markWorkspace", | ||
"Params": { | ||
"annotations": [ | ||
{ | ||
"Name": "gitpod/failedBeforeStopping", | ||
"Value": "true", | ||
"Delete": false | ||
} | ||
], | ||
"workspaceID": "f07f0f2e-08fb-433a-8282-fef07b596909" | ||
} | ||
}, | ||
{ | ||
"Func": "stopWorkspace", | ||
"Params": { | ||
"gracePeriod": 30000000000, | ||
"workspaceID": "f07f0f2e-08fb-433a-8282-fef07b596909" | ||
} | ||
} | ||
] | ||
} |
24 changes: 24 additions & 0 deletions
24
...nents/ws-manager/pkg/manager/testdata/actOnPodEvent_ideFailedToStart_005_RUNNING00.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"actions": [ | ||
{ | ||
"Func": "markWorkspace", | ||
"Params": { | ||
"annotations": [ | ||
{ | ||
"Name": "gitpod/failedBeforeStopping", | ||
"Value": "true", | ||
"Delete": false | ||
} | ||
], | ||
"workspaceID": "9ff933b3-d487-4b45-a966-e715767f91df" | ||
} | ||
}, | ||
{ | ||
"Func": "stopWorkspace", | ||
"Params": { | ||
"gracePeriod": 30000000000, | ||
"workspaceID": "9ff933b3-d487-4b45-a966-e715767f91df" | ||
} | ||
} | ||
] | ||
} |
11 changes: 11 additions & 0 deletions
11
components/ws-manager/pkg/manager/testdata/actOnPodEvent_stuckInStopping_RUNNING00.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"actions": [ | ||
{ | ||
"Func": "stopWorkspace", | ||
"Params": { | ||
"gracePeriod": 30000000000, | ||
"workspaceID": "48f13cc4-6311-48c2-950a-4b7ddedc3037" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
32 changes: 32 additions & 0 deletions
32
components/ws-manager/pkg/manager/testdata/status_ideFailedToStart_005_RUNNING00.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"status": { | ||
"id": "9ff933b3-d487-4b45-a966-e715767f91df", | ||
"metadata": { | ||
"owner": "d20bf9c2-e802-43ba-b647-ffa89f8ff17e", | ||
"meta_id": "rose-donkey-wfapr095", | ||
"started_at": { | ||
"seconds": 1629308528 | ||
} | ||
}, | ||
"spec": { | ||
"workspace_image": "eu.gcr.io/gitpod-dev/workspace-images:aeed577d8b4785088120a7d24d056ee2d553a69d2bcc413a572e82a3039cd6cd", | ||
"ide_image": "eu.gcr.io/gitpod-core-dev/build/ide/code:commit-0941a0805dc3c7345c45bd926317eaf045d4b7fb", | ||
"url": "https://rose-donkey-wfapr095.ws-eu14.gitpod.io", | ||
"timeout": "30m" | ||
}, | ||
"phase": 4, | ||
"conditions": { | ||
"failed": "IDE failed to start: exit status 127", | ||
"service_exists": 1, | ||
"deployed": 1 | ||
}, | ||
"runtime": { | ||
"node_name": "gke-gp-prod-ws-eu14-eu-workspace-pool-b6e0759a-3lb1", | ||
"pod_name": "ws-9ff933b3-d487-4b45-a966-e715767f91df", | ||
"node_ip": "10.132.0.110" | ||
}, | ||
"auth": { | ||
"owner_token": "-Jlxl8PUpKylHGFNjZaYXSmhg8qlFbck" | ||
} | ||
} | ||
} |
Oops, something went wrong.