feat: add template max_ttl (#6114)

Co-authored-by: Bruno Quaresma <bruno@coder.com>
This commit is contained in:
Dean Sheather
2023-03-07 14:14:58 +00:00
committed by GitHub
co-authored by Bruno Quaresma
parent 248c53d68d
commit 66a6b590a1
71 changed files with 2090 additions and 398 deletions
+1
View File
@@ -39,6 +39,7 @@
"reason": "initiator",
"resources": [],
"deadline": "[timestamp]",
"max_deadline": null,
"status": "running",
"daily_cost": 0
},
+10 -5
View File
@@ -7,12 +7,17 @@ Flags:
--allow-user-cancel-workspace-jobs Allow users to cancel in-progress workspace jobs.
(default true)
--default-ttl duration Edit the template default time before shutdown -
workspaces created from this template to this value.
--description string Edit the template description
--display-name string Edit the template display name
workspaces created from this template default to
this value.
--description string Edit the template description.
--display-name string Edit the template display name.
-h, --help help for edit
--icon string Edit the template icon path
--name string Edit the template name
--icon string Edit the template icon path.
--max-ttl duration Edit the template maximum time before shutdown -
workspaces created from this template must shutdown
within the given duration after starting. This is
an enterprise-only feature.
--name string Edit the template name.
-y, --yes Bypass prompts
Global Flags: