-
Notifications
You must be signed in to change notification settings - Fork 60
Add input variables support to Waypoint add-ons #864
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
Conversation
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.
LGTM
15c673e
to
3b940d6
Compare
6b82845
to
e73e73f
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.
Looks good to me! I have one question that I have included but it is nonblocking.
state.OutputValues, diags = types.ListValueFrom(ctx, types.ObjectType{AttrTypes: outputValue{}.attrTypes()}, ol) | ||
} else { | ||
state.OutputValues = types.ListNull(types.ObjectType{AttrTypes: outputValue{}.attrTypes()}) | ||
} |
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.
Do you think you could explain the change here a little bit? It looks like this is to make this more readable but I want to better understand the why of this change.
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.
It simplifies the function to only operate on the common thing, the outputs, so we can reuse the method for both resources and data sources.
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 like how thorough the test configs that you have added are!
3b940d6
to
74089bb
Compare
Co-authored-by: Clint <[email protected]>
🛠️ Description
This PR enables config authors to configure their Waypoint add-ons with input variables.