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
chore: allow pushing only inactivecoderd_template versions (#167)
Per some customer feedback, this PR relaxes some of the constraints whencreating template versions via the `coderd_template` resource.Previously, each update of the resource required that at least one ofthe versions in the `versions` list had the `active` attribute set totrue.This constraint is now only required when:1. Creating the resource, as every template must have an active version.2. It's not clear what template version should be set as active. - This occurs when the currently active version is marked as inactive,but no changes are made to the contents of the version (and no versionwould be created). Examples of these cases can be seen in the tests.With this, a workflow that involves:- Marking an active version in the list as inactive- Pushing it a few times via the provider- And then finally marking it as active is now possible with just a single item in the list.
-`description` (String) A description of the template.
78
78
-`display_name` (String) The display name of the template. Defaults to the template name.
79
79
-`failure_ttl_ms` (Number) (Enterprise) The max lifetime before Coder stops all resources for failed workspaces created from this template, in milliseconds.
80
-
-`icon` (String) Relative path or external URL thatspecifes an icon to be displayed in the dashboard.
80
+
-`icon` (String) Relative path or external URL thatspecifies an icon to be displayed in the dashboard.
81
81
-`max_port_share_level` (String) (Enterprise) The maximum port share level for workspaces created from this template. Defaults to`owner` on an Enterprise deployment, or`public` otherwise.
82
82
-`organization_id` (String) The ID of the organization. Defaults to the provider's default organization
83
83
-`require_active_version` (Boolean) (Enterprise) Whether workspaces must be created from the active version of this template. Defaults to false.