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")
Description: "Specify a set of tags to target provisioner daemons.",
210
+
Value: clibase.StringArrayOf(&provisionerTags),
211
+
},
212
+
{
213
+
Flag: "default-ttl",
214
+
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.",
215
+
Default: "24h",
216
+
Value: clibase.DurationOf(&defaultTTL),
217
+
},
218
+
{
219
+
Flag: "failure-ttl",
220
+
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.",
221
+
Default: "0h",
222
+
Value: clibase.DurationOf(&failureTTL),
223
+
},
224
+
{
225
+
Flag: "dormancy-threshold",
226
+
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.",
227
+
Default: "0h",
228
+
Value: clibase.DurationOf(&dormancyThreshold),
229
+
},
230
+
{
231
+
Flag: "dormancy-auto-deletion",
232
+
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.",
233
+
Default: "0h",
234
+
Value: clibase.DurationOf(&dormancyAutoDeletion),
235
+
},
27
236
237
+
{
238
+
Flag: "max-ttl",
239
+
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.",
240
+
Value: clibase.DurationOf(&maxTTL),
241
+
},
242
+
{
243
+
Flag: "test.provisioner",
244
+
Description: "Customize the provisioner backend.",
245
+
Default: "terraform",
246
+
Value: clibase.StringOf(&provisioner),
247
+
Hidden: true,
248
+
},
249
+
{
250
+
Flag: "require-active-version",
251
+
Description: "Requires workspace builds to use the active template version. This setting does not apply to template admins. This is an enterprise-only feature.",
0 commit comments