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

Commit286841d

Browse files
docs: clarifycoder_metadata usage (#267)
1 parente841c70 commit286841d

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

‎docs/resources/metadata.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,15 @@
33
page_title:"coder_metadata Resource - terraform-provider-coder"
44
subcategory:""
55
description:|-
6-
Use this resource to attach metadata to a resource. They will be displayed in the Coder dashboard.
6+
Use this resource to attach metadata to a resource. They will be displayed in the Coder dashboard alongside the resource. The resource containing the agent, and it's metadata, will be shown by default.
7+
Alternatively, to attach metadata to the agent, use a metadata block within a coder_agent resource.
78
---
89

910
#coder_metadata (Resource)
1011

11-
Use this resource to attach metadata to a resource. They will be displayed in the Coder dashboard.
12+
Use this resource to attach metadata to a resource. They will be displayed in the Coder dashboard alongside the resource. The resource containing the agent, and it's metadata, will be shown by default.
13+
14+
Alternatively, to attach metadata to the agent, use a`metadata` block within a`coder_agent` resource.
1215

1316
##Example Usage
1417

@@ -82,7 +85,7 @@ Required:
8285
Optional:
8386

8487
-`sensitive` (Boolean) Set to`true` to for items such as API keys whose values should be hidden from view by default. Note that this does not prevent metadata from being retrieved using the API, so it is not suitable for secrets that should not be exposed to workspace users.
85-
-`value` (String) The value of this metadata item.
88+
-`value` (String) The value of this metadata item. Supports basic Markdown, including hyperlinks.
8689

8790
Read-Only:
8891

‎provider/metadata.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ func metadataResource() *schema.Resource {
1414
SchemaVersion:1,
1515

1616
Description:"Use this resource to attach metadata to a resource. They will be "+
17-
"displayed in the Coder dashboard.",
17+
"displayed in the Coder dashboard alongside the resource. "+
18+
"The resource containing the agent, and it's metadata, will be shown by default. "+"\n\n"+
19+
"Alternatively, to attach metadata to the agent, use a `metadata` block within a `coder_agent` resource.",
1820
CreateContext:func(c context.Context,resourceData*schema.ResourceData,iinterface{}) diag.Diagnostics {
1921
resourceData.SetId(uuid.NewString())
2022

@@ -86,7 +88,7 @@ func metadataResource() *schema.Resource {
8688
},
8789
"value": {
8890
Type:schema.TypeString,
89-
Description:"The value of this metadata item.",
91+
Description:"The value of this metadata item. Supports basic Markdown, including hyperlinks.",
9092
ForceNew:true,
9193
Optional:true,
9294
},

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp