-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
all: Add automatic deferred action support for unknown provider confi…
…guration (#1002) * Initial implementation of automatic deferrals for resource/datasource RPCs * Implement provider automatic deferral for `PlanResourceChange` RPC * Add default values for automatic deferrals * Update resource/metadata.go Co-authored-by: Austin Valle <[email protected]> * Add experimental note * Implement resource behavior in `proto6server` * Add changelog entries * Apply suggestions from code review Co-authored-by: Austin Valle <[email protected]> * Log deferred reason in debug logging * Add error diagnostics to automatic deferral tests * Refactor `PlanResourceChange` automatic deferred action implementation based on PR feedback. * Add a comment calling out intentional design of replacing configured values with `Unknown` * Return early in `PlanResourceChange` if `ProviderDeferredBehavior.EnablePlanModification` is false. * Update internal/fwserver/server_configureprovider.go Co-authored-by: Brian Flad <[email protected]> * Add separate unit test for overriding provider deferred reason with resource deferred reason. --------- Co-authored-by: Austin Valle <[email protected]> Co-authored-by: Brian Flad <[email protected]>
- Loading branch information
1 parent
d46eab1
commit 60c2c5a
Showing
31 changed files
with
849 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
kind: FEATURES | ||
body: 'provider: Add `Deferred` field to `ConfigureResponse` | ||
which indicates a provider deferred action to the Terraform client' | ||
time: 2024-05-20T18:04:58.852448-04:00 | ||
custom: | ||
Issue: "1002" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
kind: FEATURES | ||
body: 'provider: Add `ClientCapabilities` field to `ConfigureRequest` which specifies | ||
optionally supported protocol features for the Terraform client' | ||
time: 2024-05-20T18:07:35.862641-04:00 | ||
custom: | ||
Issue: "1002" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.