-
Notifications
You must be signed in to change notification settings - Fork 94
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
all: Add support for Manual Deferred Actions #999
Conversation
…d `DeferredResponse` respectively to match protobuf definition
# Conflicts: # go.sum
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.
Changes look great! I have a couple questions about default values + an on-going discussion about experimental wording.
We'll need to figure out internally how we want to release this work (wait for automatic deferral work?)
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.
Drive-by minor comments since @austinvalle is already reviewing -- please let me know if you have any questions. 😄
Co-authored-by: Austin Valle <[email protected]>
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.
Overall looks good to me, nice work. I'll let @austinvalle give the final 👍
Co-authored-by: Brian Flad <[email protected]>
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 have one final thought about the defaulting and perhaps moving it up to fromproto
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, great work @SBGoods! 🚀
Ref: hashicorp/terraform-plugin-go#403
This PR implements manual deferred action support for ReadResource, ReadDataSource, ImportResourceState, and PlanResourceChange RPCs. It adds new
resource.DeferredResponse
anddatasource.DeferredResponse
structs so that providers can indicate a deferral to the Terraform client.Deferred actions is an experimental feature introduced in Terraform v1.9.0-alpha20240404 and is only available in experimental Terraform builds.
A follow up PR will implement automatic deferred action support for
PROVIDER_CONFIG_UNKNOWN
during the ConfigureProvider RPC.