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:
Steven Masley
2023-05-10 19:23:16 -05:00
committed by GitHub
parent a42a36a474
commit b7f4f3a771
13 changed files with 202 additions and 24 deletions

32
coderd/apidoc/docs.go generated
View File

@ -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"