feat: add template setting to require active template version (#10277)

This commit is contained in:
Jon Ayers
2023-10-18 17:07:21 -05:00
committed by GitHub
parent 1ad998ee3a
commit 997493d4ae
47 changed files with 802 additions and 70 deletions

8
coderd/apidoc/docs.go generated
View File

@ -7816,6 +7816,10 @@ const docTemplate = `{
"description": "Name is the name of the template.",
"type": "string"
},
"require_active_version": {
"description": "RequireActiveVersion mandates that workspaces are built with the active\ntemplate version.",
"type": "boolean"
},
"template_version_id": {
"description": "VersionID is an in-progress or completed job to use as an initial version\nof the template.\n\nThis is required on creation to enable a user-flow of validating a\ntemplate works. There is no reason the data-model cannot support empty\ntemplates, but it doesn't make sense for users.",
"type": "string",
@ -9994,6 +9998,10 @@ const docTemplate = `{
"terraform"
]
},
"require_active_version": {
"description": "RequireActiveVersion mandates that workspaces are built with the active\ntemplate version.",
"type": "boolean"
},
"time_til_dormant_autodelete_ms": {
"type": "integer"
},