feat: mark prebuilds as such and set their preset ids (#16965)

This pull request closes https://github.com/coder/internal/issues/513
This commit is contained in:
Sas Swart
2025-04-14 15:34:50 +02:00
committed by GitHub
parent 73f5af82ad
commit a98605913a
24 changed files with 613 additions and 315 deletions
+13
View File
@@ -11394,6 +11394,11 @@ const docTemplate = `{
"type": "string",
"format": "uuid"
},
"template_version_preset_id": {
"description": "TemplateVersionPresetID is the ID of the template version preset to use for the build.",
"type": "string",
"format": "uuid"
},
"transition": {
"enum": [
"start",
@@ -11458,6 +11463,10 @@ const docTemplate = `{
"type": "string",
"format": "uuid"
},
"template_version_preset_id": {
"type": "string",
"format": "uuid"
},
"ttl_ms": {
"type": "integer"
}
@@ -17037,6 +17046,10 @@ const docTemplate = `{
"template_version_name": {
"type": "string"
},
"template_version_preset_id": {
"type": "string",
"format": "uuid"
},
"transition": {
"enum": [
"start",
+13
View File
@@ -10160,6 +10160,11 @@
"type": "string",
"format": "uuid"
},
"template_version_preset_id": {
"description": "TemplateVersionPresetID is the ID of the template version preset to use for the build.",
"type": "string",
"format": "uuid"
},
"transition": {
"enum": ["start", "stop", "delete"],
"allOf": [
@@ -10216,6 +10221,10 @@
"type": "string",
"format": "uuid"
},
"template_version_preset_id": {
"type": "string",
"format": "uuid"
},
"ttl_ms": {
"type": "integer"
}
@@ -15548,6 +15557,10 @@
"template_version_name": {
"type": "string"
},
"template_version_preset_id": {
"type": "string",
"format": "uuid"
},
"transition": {
"enum": ["start", "stop", "delete"],
"allOf": [