Skip to content

Commit 70fe355

Browse files
committed
chore!: remove deprecated name and relative_path fields from app resource
The `name` and `relative_path` fields in the app resource have been deprecated. This commit removes these fields from the codebase to align with the updated documentation and best practices.
1 parent d2e2d96 commit 70fe355

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

docs/resources/app.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@ resource "coder_app" "vim" {
6464
- `external` (Boolean) Specifies whether `url` is opened on the client machine instead of proxied through the workspace.
6565
- `healthcheck` (Block Set, Max: 1) HTTP health checking to determine the application readiness. (see [below for nested schema](#nestedblock--healthcheck))
6666
- `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>"`.
67-
- `name` (String, **Deprecated**: `name` on apps is deprecated, use `display_name` instead) A display name to identify the app.
6867
- `order` (Number) 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).
69-
- `relative_path` (Boolean, **Deprecated**: `relative_path` on apps is deprecated, use `subdomain` instead.) Specifies whether the URL will be accessed via a relative path or wildcard. Use if wildcard routing is unavailable. Defaults to `true`.
7068
- `share` (String) Determines the level which the application is shared at. Valid levels are `"owner"` (default), `"authenticated"` and `"public"`. Level `"owner"` disables sharing on the app, so only the workspace owner can access it. Level `"authenticated"` shares the app with all authenticated users. Level `"public"` shares it with any user, including unauthenticated users. Permitted application sharing levels can be configured site-wide via a flag on `coder server` (Enterprise only).
7169
- `subdomain` (Boolean) Determines whether the app will be accessed via it's own subdomain or whether it will be accessed via a path on Coder. If wildcards have not been setup by the administrator then apps with `subdomain` set to `true` will not be accessible. Defaults to `false`.
7270
- `url` (String) An external url if `external=true` or a URL to be proxied to from inside the workspace. This should be of the form `http://localhost:PORT[/SUBPATH]`. Either `command` or `url` may be specified, but not both.

provider/app.go

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,6 @@ func appResource() *schema.Resource {
9696
ForceNew: true,
9797
Optional: true,
9898
},
99-
"name": {
100-
Type: schema.TypeString,
101-
Description: "A display name to identify the app.",
102-
Deprecated: "`name` on apps is deprecated, use `display_name` instead",
103-
ForceNew: true,
104-
Optional: true,
105-
ConflictsWith: []string{"display_name"},
106-
},
10799
"subdomain": {
108100
Type: schema.TypeBool,
109101
Description: "Determines whether the app will be accessed via it's own " +
@@ -113,15 +105,6 @@ func appResource() *schema.Resource {
113105
ForceNew: true,
114106
Optional: true,
115107
},
116-
"relative_path": {
117-
Type: schema.TypeBool,
118-
Deprecated: "`relative_path` on apps is deprecated, use `subdomain` instead.",
119-
Description: "Specifies whether the URL will be accessed via a relative " +
120-
"path or wildcard. Use if wildcard routing is unavailable. Defaults to `true`.",
121-
ForceNew: true,
122-
Optional: true,
123-
ConflictsWith: []string{"subdomain"},
124-
},
125108
"share": {
126109
Type: schema.TypeString,
127110
Description: "Determines the level which the application " +

0 commit comments

Comments
 (0)