-
Notifications
You must be signed in to change notification settings - Fork 101
action: Add initial schema interface, attributes, and unlinked schema #1183
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
// UnlinkedSchema defines the structure and value types of an unlinked action. An unlinked action | ||
// cannot cause changes to resource state. | ||
type UnlinkedSchema struct { |
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 where the 3 schema types will differ (and the reason for using an interface instead of a single struct type), so they can introduce specific schema info for each type. Unlinked doesn't actually have any additional info needed, but linked/lifecycle will need information about their linked resources and lifecycle will need an execution order.
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! I'm very much in favor on cutting down on the amount of unit tests in the framework
Related Issue
N/A
Description
This PR hooks up the
GetProviderSchema
andGetMetadata
RPCs and implements the unlinked action schema (along with a couple attributes).Notes
proto5server
andproto6server
tests, I deleted a ton of duplicate tests. Those tests don't add a ton of value on their own and the schema ones in particular are annoying to update 😆 (perhaps more cleanup/consolidation can come in the future)Rollback Plan
Changes to Security Controls
No