Skip to content
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

Prototype exposing cty.Values from ResourceData. #802

Merged
merged 1 commit into from
Sep 15, 2021

Conversation

paddycarver
Copy link
Contributor

Fixes #793.

We actually create a terraform.InstanceState when handling the gRPC methods, and then a ResourceData is created from that. So, like with ProviderMeta functionality (#405) we're following the same path and threading our cty values through the instance state.

This still needs unit tests.

paddycarver added a commit to hashicorp/terraform-provider-corner that referenced this pull request Sep 8, 2021
Supporting tests for hashicorp/terraform-plugin-sdk#802. Testing the new
cty stuff hanging off the ResourceData and ResourceDiff types.
paddycarver added a commit to hashicorp/terraform-provider-corner that referenced this pull request Sep 8, 2021
Supporting tests for hashicorp/terraform-plugin-sdk#802. Testing the new
cty stuff hanging off the ResourceData and ResourceDiff types.
@paddycarver paddycarver marked this pull request as ready for review September 8, 2021 14:06
@paddycarver
Copy link
Contributor Author

Supported by hashicorp/terraform-provider-corner#29.

@paddycarver paddycarver requested a review from a team September 8, 2021 14:07
paddycarver added a commit to hashicorp/terraform-provider-corner that referenced this pull request Sep 8, 2021
Supporting tests for hashicorp/terraform-plugin-sdk#802. Testing the new
cty stuff hanging off the ResourceData and ResourceDiff types.
paddycarver added a commit to hashicorp/terraform-provider-corner that referenced this pull request Sep 8, 2021
Supporting tests for hashicorp/terraform-plugin-sdk#802. Testing the new
cty stuff hanging off the ResourceData and ResourceDiff types.
Copy link
Contributor

@bflad bflad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me 🚀 Nice work threading everything through.

@paddycarver paddycarver merged commit e91cd2e into main Sep 15, 2021
@paddycarver paddycarver deleted the paddy_resourcedata_cty branch September 15, 2021 09:22
bflad pushed a commit to hashicorp/terraform-provider-corner that referenced this pull request Sep 28, 2021
Supporting tests for hashicorp/terraform-plugin-sdk#802. Testing the new
cty stuff hanging off the ResourceData and ResourceDiff types.
bflad pushed a commit to hashicorp/terraform-provider-corner that referenced this pull request Sep 28, 2021
Supporting tests for hashicorp/terraform-plugin-sdk#802. Testing the new
cty stuff hanging off the ResourceData and ResourceDiff types.
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Expose cty.Value in ResourceData
2 participants