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

Handle defaults in config function #786

Merged

Conversation

zliang-akamai
Copy link
Member

@zliang-akamai zliang-akamai commented Apr 11, 2023

📝 Description

This is necessary because the Terraform Framework dropped the support of default fields in the schema. And in order to use muxing server with both SDKv2 provider and framework provider, it is required that usage of default fields in SDKv2 provider to be moved to config function.

Issue reported and solved in HashiCorp's repo:
hashicorp/terraform-plugin-framework#640

I separated this change from the main migration branch to make the review of this PR easier. Other migration stuff will be coming in another PR after merging of this one.

✔️ How to Test

make testacc

@zliang-akamai zliang-akamai requested a review from a team April 11, 2023 18:43
@zliang-akamai
Copy link
Member Author

/acctest sha=7b8971dddb56ff4c4688e2822d68c91bcb31f5ad pkg=linode/...

Copy link
Contributor

@lgarber-akamai lgarber-akamai left a comment

Choose a reason for hiding this comment

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

Looks good!

@zliang-akamai
Copy link
Member Author

/acctest sha=b5361480e428b4f7550876b2fa5f676f5e0eb333 pkg=linode/...

@zliang-akamai
Copy link
Member Author

/acctest sha=ee2212c04fb39a99d9cc1f1ec21bbcd8baf903a5 pkg=linode/...

@zliang-akamai zliang-akamai merged commit 383e8da into dev Apr 17, 2023
2 of 3 checks passed
@zliang-akamai zliang-akamai deleted the zhiwei/sdkv2-provider-handle-default-in-config-func branch April 17, 2023 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants