-
Notifications
You must be signed in to change notification settings - Fork 46
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
[WAYP-2172] Set variable options for add-on definitions #819
Conversation
394d397
to
e5db712
Compare
23f793f
to
162b417
Compare
6f63343
to
9bea587
Compare
454a6b3
to
9962d62
Compare
9bea587
to
3340c01
Compare
3d04248
to
d06db61
Compare
0be6729
to
fe0c8e4
Compare
Converted this back to draft while I update it based on feedback which applied to #816. |
7c1421f
to
6390bd3
Compare
Also fix required vs. computed property on variable options field for data source.
232bd57
to
c2a287a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think user_enabled
needs to be Computed
as well, otherwise looks good ๐
Description: "List of options", | ||
}, | ||
"user_editable": &schema.BoolAttribute{ | ||
Required: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is Optional
in resource_waypoint_application_template.go. I believe it also needs to be Computed: true
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated in 81d1757 (for both templates and add-on definitions).
@@ -10,7 +10,7 @@ import ( | |||
|
|||
sharedmodels "github.com/hashicorp/hcp-sdk-go/clients/cloud-shared/v1/models" | |||
"github.com/hashicorp/hcp-sdk-go/clients/cloud-waypoint-service/preview/2023-08-18/client/waypoint_service" | |||
waypointmodels "github.com/hashicorp/hcp-sdk-go/clients/cloud-waypoint-service/preview/2023-08-18/models" | |||
waypoint_models "github.com/hashicorp/hcp-sdk-go/clients/cloud-waypoint-service/preview/2023-08-18/models" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: this should be waypointModels
but we can do a sweep later, I think a few other resources have the _
as well
Also update package alias name for Waypoint models.
๐ ๏ธ Description
This PR updates the hcp_waypoint_add_on_definition resource and data source to set and retrieve input variable options for HCP Waypoint add-ons.
๐๏ธ Acceptance tests
Output from acceptance testing: