You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnxerrors.Errorf("--failure-ttl, --dormancy-threshold, and --dormancy-auto-deletion are experimental features. Use the workspace_actions CODER_EXPERIMENTS flag to set these configuration values.")
returnxerrors.Errorf("your license is not entitled to use advanced template scheduling, so you cannot set --failure-ttl, --inactivity-ttl, or --max-ttl")
returnxerrors.Errorf("--require-active-version is an experimental feature, contact an administrator to enable the 'template_update_policies' experiment on your Coder server")
returnxerrors.Errorf("--failure-ttl, --dormancy-threshold, and --dormancy-auto-deletion are experimental features. Use the workspace_actions CODER_EXPERIMENTS flag to set these configuration values.")
returnxerrors.Errorf("your license is not entitled to use advanced template scheduling, so you cannot set --failure-ttl, --inactivity-ttl, or --max-ttl")
returnxerrors.Errorf("--require-active-version is an experimental feature, contact an administrator to enable the 'template_update_policies' experiment on your Coder server")
Description: "Create the template if it does not exist.",
389
+
Flag: "require-active-version",
390
+
Description: "Requires workspace builds to use the active template version. This setting does not apply to template admins. This is an enterprise-only feature.",
391
+
Value: clibase.BoolOf(&requireActiveVersion),
332
392
Default: "false",
333
-
Value: clibase.BoolOf(&create),
393
+
},
394
+
{
395
+
Flag: "default-ttl",
396
+
Description: "Specify a default TTL for workspaces created from this template. It is the default time before shutdown - workspaces created from this template default to this value. Maps to \"Default autostop\" in the UI.",
397
+
Default: "24h",
398
+
Value: clibase.DurationOf(&defaultTTL),
399
+
},
400
+
{
401
+
Flag: "failure-ttl",
402
+
Description: "Specify a failure TTL for workspaces created from this template. It is the amount of time after a failed \"start\" build before coder automatically schedules a \"stop\" build to cleanup.This licensed feature's default is 0h (off). Maps to \"Failure cleanup\"in the UI.",
403
+
Default: "0h",
404
+
Value: clibase.DurationOf(&failureTTL),
405
+
},
406
+
{
407
+
Flag: "dormancy-threshold",
408
+
Description: "Specify a duration workspaces may be inactive prior to being moved to the dormant state. This licensed feature's default is 0h (off). Maps to \"Dormancy threshold\" in the UI.",
409
+
Default: "0h",
410
+
Value: clibase.DurationOf(&dormancyThreshold),
411
+
},
412
+
{
413
+
Flag: "dormancy-auto-deletion",
414
+
Description: "Specify a duration workspaces may be in the dormant state prior to being deleted. This licensed feature's default is 0h (off). Maps to \"Dormancy Auto-Deletion\" in the UI.",
415
+
Default: "0h",
416
+
Value: clibase.DurationOf(&dormancyAutoDeletion),
417
+
},
418
+
{
419
+
Flag: "max-ttl",
420
+
Description: "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.",
421
+
Value: clibase.DurationOf(&maxTTL),
422
+
},
423
+
{
424
+
Flag: "private",
425
+
Description: "Disable the default behavior of granting template access to the 'everyone' group. "+
426
+
"The template permissions must be updated to allow non-admin users to use this template.",
0 commit comments