Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4126ff4

Browse files
authored
docs: link to additional documentation for prebuilt workspaces (#395)
* docs: link to additional documentation for prebuilt workspaces* improve wording
1 parent8692a56 commit4126ff4

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

‎docs/data-sources/workspace_preset.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
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 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 aredefined by the template butnot defined by the preset will still be configurable when creating a workspace.
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 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 aredefined by the template butnot defined by the preset will still be configurable when creating a workspace.
1212

1313
##Example Usage
1414

@@ -39,7 +39,7 @@ data "coder_workspace_preset" "example" {
3939
###Optional
4040

4141
-`parameters` (Map of String) Workspace parameters that will be set by the workspace preset. For simple templates that only need prebuilds, you may define a preset with zero parameters. Because workspace parameters may change between Coder template versions, preset parameters are allowed to define values for parameters that do not exist in the current template version.
42-
-`prebuilds` (Block Set, Max: 1)Prebuilt workspace configuration related tothisworkspacepreset. Coder willbuild and maintain workspaces in reserve based on this configuration. When a user creates anewworkspace usinga preset, theywill beassigned a prebuilt workspace, instead of waiting for a newworkspace to build. (see[below for nested schema](#nestedblock--prebuilds))
42+
-`prebuilds` (Block Set, Max: 1)Configuration for prebuilt workspaces associated withthis preset. Coder willmaintain a pool of standby workspaces based on this configuration. When a user creates a workspace usingthis preset, theyareassigned a prebuilt workspace instead of waiting for a newone to build. See prebuilt workspace documentation[here](https://coder.com/docs/admin/templates/extending-templates/prebuilt-workspaces.md) (see[below for nested schema](#nestedblock--prebuilds))
4343

4444
###Read-Only
4545

‎provider/workspace_preset.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ func workspacePresetDataSource() *schema.Resource {
2828
return&schema.Resource{
2929
SchemaVersion:1,
3030

31-
Description:"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 not defined by the preset will still be configurable when creating a workspace.",
31+
Description:"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.",
32+
3233
ReadContext:func(ctx context.Context,rd*schema.ResourceData,iinterface{}) diag.Diagnostics {
3334
varpresetWorkspacePreset
3435
err:=mapstructure.Decode(struct {
@@ -68,7 +69,7 @@ func workspacePresetDataSource() *schema.Resource {
6869
},
6970
"prebuilds": {
7071
Type:schema.TypeSet,
71-
Description:"Prebuilt workspace configuration related tothisworkspacepreset. Coder willbuild and maintain workspaces in reserve based on this configuration. When a user creates anewworkspace usinga preset, theywill beassigned a prebuilt workspace, instead of waiting for a newworkspace to build.",
72+
Description:"Configuration for prebuilt workspaces associated withthis preset. Coder willmaintain a pool of standby workspaces based on this configuration. When a user creates a workspace usingthis preset, theyareassigned a prebuilt workspace instead of waiting for a newone to build. See prebuilt workspace documentation [here](https://coder.com/docs/admin/templates/extending-templates/prebuilt-workspaces.md)",
7273
Optional:true,
7374
MaxItems:1,
7475
Elem:&schema.Resource{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp