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

Commit7489953

Browse files
authored
feat: addgroup attribute tocoder_app resource (#402)
1 parent0c7fd6a commit7489953

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

‎docs/resources/app.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ resource "coder_app" "vim" {
6363
-`command` (String) A command to run in a terminal opening this app. In the web, this will open in a new tab. In the CLI, this will SSH and execute the command. Either`command` or`url` may be specified, but not both.
6464
-`display_name` (String) A display name to identify the app. Defaults to the slug.
6565
-`external` (Boolean) Specifies whether`url` is opened on the client machine instead of proxied through the workspace.
66+
-`group` (String) The name of a group that this app belongs to.
6667
-`healthcheck` (Block Set, Max: 1) HTTP health checking to determine the application readiness. (see[below for nested schema](#nestedblock--healthcheck))
6768
-`hidden` (Boolean) Determines if the app is visible in the UI (minimum Coder version: v2.16).
6869
-`icon` (String) A URL to an icon that will display in the dashboard. View built-in icons here:https://github.com/coder/coder/tree/main/site/static/icon. Use a built-in icon with`"${data.coder_workspace.me.access_url}/icon/<path>"`.

‎provider/app.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,12 @@ func appResource() *schema.Resource {
223223
},
224224
},
225225
},
226+
"group": {
227+
Type:schema.TypeString,
228+
Description:"The name of a group that this app belongs to.",
229+
ForceNew:true,
230+
Optional:true,
231+
},
226232
"order": {
227233
Type:schema.TypeInt,
228234
Description:"The order determines the position of app in the UI presentation. The lowest order is shown first and apps with equal order are sorted by name (ascending order).",

‎provider/app_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ func TestApp(t *testing.T) {
4040
interval = 5
4141
threshold = 6
4242
}
43+
group = "Apps"
4344
order = 4
4445
hidden = false
4546
open_in = "slim-window"
@@ -63,6 +64,7 @@ func TestApp(t *testing.T) {
6364
"healthcheck.0.url",
6465
"healthcheck.0.interval",
6566
"healthcheck.0.threshold",
67+
"group",
6668
"order",
6769
"hidden",
6870
"open_in",
@@ -476,5 +478,4 @@ func TestApp(t *testing.T) {
476478
})
477479
}
478480
})
479-
480481
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp