feat(coderd): add provisioner build version and api_version on serve (#11369)

* assert provisioner daemon version and api_version in unit tests
* add build info in HTTP header, extract codersdk.BuildVersionHeader
* add api_version to codersdk.ProvisionerDaemon
* testutil.MustString -> testutil.MustRandString
This commit is contained in:
Cian Johnston
2024-01-03 09:01:57 +00:00
committed by GitHub
parent 9031b498ea
commit 1ef96022b0
22 changed files with 97 additions and 34 deletions

3
coderd/apidoc/docs.go generated
View File

@ -10052,6 +10052,9 @@ const docTemplate = `{
"codersdk.ProvisionerDaemon": {
"type": "object",
"properties": {
"api_version": {
"type": "string"
},
"created_at": {
"type": "string",
"format": "date-time"