feat: Enable workspace debug logging (#6838)

* feat: Enable workspace debug logging

* Fix

* Fix

* Fix

* fix

* fix

* Enable RBAC

* unit tests

* Fix

* fix

* fix

* fix

* more tests

* fix: workspacebuild_test use roles

* fix: swagger comment

* fix: ctx.Done

* fix: address PR comments

* break loop
This commit is contained in:
Marcin Tojek
2023-03-30 16:00:33 +02:00
committed by GitHub
parent 665b84de0d
commit 0ba200c2a1
18 changed files with 610 additions and 288 deletions

20
coderd/apidoc/docs.go generated
View File

@ -6519,6 +6519,17 @@ const docTemplate = `{
"dry_run": {
"type": "boolean"
},
"log_level": {
"description": "Log level changes the default logging verbosity of a provider (\"info\" if empty).",
"enum": [
"debug"
],
"allOf": [
{
"$ref": "#/definitions/codersdk.ProvisionerLogLevel"
}
]
},
"orphan": {
"description": "Orphan may be set for the Destroy transition.",
"type": "boolean"
@ -7776,6 +7787,15 @@ const docTemplate = `{
"ProvisionerJobFailed"
]
},
"codersdk.ProvisionerLogLevel": {
"type": "string",
"enum": [
"debug"
],
"x-enum-varnames": [
"ProvisionerLogLevelDebug"
]
},
"codersdk.ProvisionerStorageMethod": {
"type": "string",
"enum": [