Skip to content

Commit

Permalink
Convert var opts from list to set for add-on definitions & templates (#…
Browse files Browse the repository at this point in the history
…845)

* waypoint: Convert var opts from list to set for add-on definitions and templates.

Doing this eliminates the need for ordering on variables.

* waypoint: Docs update.
  • Loading branch information
paladin-devops committed May 22, 2024
1 parent f442a53 commit 39fd48c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/resources/waypoint_add_on_definition.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Waypoint Add-on Definition resource
- `labels` (List of String) List of labels attached to this Add-on Definition.
- `project_id` (String) The ID of the HCP project where the Waypoint Add-on Definition is located.
- `readme_markdown_template` (String) The markdown template for the Add-on Definition README.
- `variable_options` (Attributes List) List of variable options for the template (see [below for nested schema](#nestedatt--variable_options))
- `variable_options` (Attributes Set) List of variable options for the template (see [below for nested schema](#nestedatt--variable_options))

### Read-Only

Expand Down
2 changes: 1 addition & 1 deletion docs/resources/waypoint_application_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Waypoint Application Template resource
- `labels` (List of String) List of labels attached to this Application Template.
- `project_id` (String) The ID of the HCP project where the Waypoint Application Template is located.
- `readme_markdown_template` (String) Instructions for using the template (markdown format supported
- `variable_options` (Attributes List) List of variable options for the template (see [below for nested schema](#nestedatt--variable_options))
- `variable_options` (Attributes Set) List of variable options for the template (see [below for nested schema](#nestedatt--variable_options))

### Read-Only

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func (r *AddOnDefinitionResource) Schema(ctx context.Context, req resource.Schem
},
},
},
"variable_options": schema.ListNestedAttribute{
"variable_options": schema.SetNestedAttribute{
Optional: true,
Description: "List of variable options for the template",
NestedObject: schema.NestedAttributeObject{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func (r *ApplicationTemplateResource) Schema(ctx context.Context, req resource.S
},
},
},
"variable_options": schema.ListNestedAttribute{
"variable_options": schema.SetNestedAttribute{
Optional: true,
Description: "List of variable options for the template",
NestedObject: schema.NestedAttributeObject{
Expand Down

0 comments on commit 39fd48c

Please sign in to comment.