Skip to content

Commit e050d74

Browse files
refactor: only show version requirements for new resources
Removed version requirements from resources that existed before Coder v2.0, as these requirements are not meaningful for established resources. Changes: - Updated docsgen to only add version notes when @SInCE: marker is present - Removed default v2.18.0 version assignment - Added @SInCE:v2.8.0 to workspace_preset data source - Updated documentation to clarify when to add version markers Now only resources/features introduced after v2.0 show version requirements: - coder_ai_task (v2.24.0) - coder_devcontainer (v2.21.0) - coder_workspace_preset (v2.8.0) - coder_app.hidden attribute (v2.16.0) Co-authored-by: matifali <[email protected]>
1 parent 2eff7b3 commit e050d74

17 files changed

+21
-54
lines changed

docs/data-sources/external_auth.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ description: |-
1010

1111
Use this data source to require users to authenticate with an external service prior to workspace creation. This can be used to [pre-authenticate external services](https://coder.com/docs/admin/external-auth) in a workspace. (e.g. Google Cloud, Github, Docker, etc.)
1212

13-
~> **Note:** This data source requires [Coder v2.18.0](https://github.com/coder/coder/releases/tag/v2.18.0) or later.
14-
1513
## Example Usage
1614

1715
```terraform

docs/data-sources/parameter.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ description: |-
1010

1111
Use this data source to configure editable options for workspaces.
1212

13-
~> **Note:** This data source requires [Coder v2.18.0](https://github.com/coder/coder/releases/tag/v2.18.0) or later.
14-
1513
## Example Usage
1614

1715
```terraform

docs/data-sources/provisioner.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ description: |-
1010

1111
Use this data source to get information about the Coder provisioner.
1212

13-
~> **Note:** This data source requires [Coder v2.18.0](https://github.com/coder/coder/releases/tag/v2.18.0) or later.
14-
1513
## Example Usage
1614

1715
```terraform

docs/data-sources/workspace.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ description: |-
1010

1111
Use this data source to get information for the active workspace build.
1212

13-
~> **Note:** This data source requires [Coder v2.18.0](https://github.com/coder/coder/releases/tag/v2.18.0) or later.
14-
1513
## Example Usage
1614

1715
```terraform

docs/data-sources/workspace_owner.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ description: |-
1010

1111
Use this data source to fetch information about the workspace owner.
1212

13-
~> **Note:** This data source requires [Coder v2.18.0](https://github.com/coder/coder/releases/tag/v2.18.0) or later.
14-
1513
## Example Usage
1614

1715
```terraform

docs/data-sources/workspace_preset.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
page_title: "coder_workspace_preset Data Source - terraform-provider-coder"
44
subcategory: ""
55
description: |-
6-
Use this data source to predefine common configurations for coder workspaces. Users will have the option to select a defined preset, which will automatically apply the selected configuration. Any parameters defined in the preset will be applied to the workspace. Parameters that are defined by the template but not defined by the preset will still be configurable when creating a workspace.
6+
Use this data source to predefine common configurations for coder workspaces. Users will have the option to select a defined preset, which will automatically apply the selected configuration. Any parameters defined in the preset will be applied to the workspace. Parameters that are defined by the template but not defined by the preset will still be configurable when creating a workspace. @since:v2.8.0
77
---
88

99
# coder_workspace_preset (Data Source)
1010

11-
Use this data source to predefine common configurations for coder workspaces. Users will have the option to select a defined preset, which will automatically apply the selected configuration. Any parameters defined in the preset will be applied to the workspace. Parameters that are defined by the template but not defined by the preset will still be configurable when creating a workspace.
11+
Use this data source to predefine common configurations for coder workspaces. Users will have the option to select a defined preset, which will automatically apply the selected configuration. Any parameters defined in the preset will be applied to the workspace. Parameters that are defined by the template but not defined by the preset will still be configurable when creating a workspace. @since:v2.8.0
1212

13-
~> **Note:** This data source requires [Coder v2.18.0](https://github.com/coder/coder/releases/tag/v2.18.0) or later.
13+
~> **Note:** This data source requires [Coder v2.8.0](https://github.com/coder/coder/releases/tag/v2.8.0) or later.
1414

1515
## Example Usage
1616

docs/data-sources/workspace_tags.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ description: |-
1010

1111
Use this data source to configure workspace tags to select provisioners.
1212

13-
~> **Note:** This data source requires [Coder v2.18.0](https://github.com/coder/coder/releases/tag/v2.18.0) or later.
14-
1513
## Example Usage
1614

1715
```terraform

docs/resources/agent.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ description: |-
1010

1111
Use this resource to associate an agent.
1212

13-
~> **Note:** This resource requires [Coder v2.18.0](https://github.com/coder/coder/releases/tag/v2.18.0) or later.
14-
1513
## Example Usage
1614

1715
```terraform

docs/resources/agent_instance.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ description: |-
1010

1111
Use this resource to associate an instance ID with an agent for zero-trust authentication. This association is done automatically for `"google_compute_instance"`, `"aws_instance"`, `"azurerm_linux_virtual_machine"`, and `"azurerm_windows_virtual_machine"` resources.
1212

13-
~> **Note:** This resource requires [Coder v2.18.0](https://github.com/coder/coder/releases/tag/v2.18.0) or later.
14-
1513
## Example Usage
1614

1715
```terraform

docs/resources/app.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ description: |-
1010

1111
Use this resource to define shortcuts to access applications in a workspace.
1212

13-
~> **Note:** This resource requires [Coder v2.18.0](https://github.com/coder/coder/releases/tag/v2.18.0) or later.
14-
1513
## Example Usage
1614

1715
```terraform

0 commit comments

Comments
 (0)