Skip to content

coder_parameter: deprecate legacy_variable and legacy_variable_name #126

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/data-sources/parameter.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ Use this data source to configure editable options for workspaces.
- `description` (String) Describe what this parameter does.
- `display_name` (String) The displayed name of the parameter as it will appear in the interface.
- `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>"`.
- `legacy_variable` (String) Reference to the Terraform variable. Coder will use it to lookup the default value.
- `legacy_variable_name` (String) Name of the legacy Terraform variable. Coder will use it to lookup the variable value.
- `legacy_variable` (String, Deprecated) Reference to the Terraform variable. Coder will use it to lookup the default value.
- `legacy_variable_name` (String, Deprecated) Name of the legacy Terraform variable. Coder will use it to lookup the variable value.
- `mutable` (Boolean) Whether this value can be changed after workspace creation. This can be destructive for values like region, so use with caution!
- `option` (Block List, Max: 64) Each "option" block defines a value for a user to select from. (see [below for nested schema](#nestedblock--option))
- `type` (String) The type of this parameter. Must be one of: "number", "string", "bool", or "list(string)".
Expand Down
2 changes: 2 additions & 0 deletions provider/parameter.go
Original file line number Diff line number Diff line change
Expand Up @@ -336,12 +336,14 @@ func parameterDataSource() *schema.Resource {
Optional: true,
RequiredWith: []string{"legacy_variable"},
Description: "Name of the legacy Terraform variable. Coder will use it to lookup the variable value.",
Deprecated: "Effective from Coder v0.24.0, the parameter migration feature is no longer available. This attribute will be removed in the nearest future.",
},
"legacy_variable": {
Type: schema.TypeString,
Optional: true,
RequiredWith: []string{"legacy_variable_name"},
Description: "Reference to the Terraform variable. Coder will use it to lookup the default value.",
Deprecated: "Effective from Coder v0.24.0, the parameter migration feature is no longer available. This attribute will be removed in the nearest future.",
},
},
}
Expand Down