mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
chore: Implement workspace proxy going away (graceful shutdown) (#7459)
* chore: Implement workspace proxy going away When a workspace proxy shuts down, the health status of that proxy should immediately be updated. This is purely a courtesy and technically not required
This commit is contained in:
32
coderd/apidoc/docs.go
generated
32
coderd/apidoc/docs.go
generated
@ -5093,6 +5093,34 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/workspaceproxies/me/goingaway": {
|
||||
"post": {
|
||||
"security": [
|
||||
{
|
||||
"CoderSessionToken": []
|
||||
}
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Enterprise"
|
||||
],
|
||||
"summary": "Workspace proxy going away",
|
||||
"operationId": "workspace-proxy-going-away",
|
||||
"responses": {
|
||||
"201": {
|
||||
"description": "Created",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/codersdk.Response"
|
||||
}
|
||||
}
|
||||
},
|
||||
"x-apidocgen": {
|
||||
"skip": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"/workspaceproxies/me/issue-signed-app-token": {
|
||||
"post": {
|
||||
"security": [
|
||||
@ -8419,13 +8447,13 @@ const docTemplate = `{
|
||||
"codersdk.ProxyHealthStatus": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"reachable",
|
||||
"ok",
|
||||
"unreachable",
|
||||
"unhealthy",
|
||||
"unregistered"
|
||||
],
|
||||
"x-enum-varnames": [
|
||||
"ProxyReachable",
|
||||
"ProxyHealthy",
|
||||
"ProxyUnreachable",
|
||||
"ProxyUnhealthy",
|
||||
"ProxyUnregistered"
|
||||
|
Reference in New Issue
Block a user