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

Call the registered schema.CustomizeDiffFunc functions in the Terraform SDK-based external client #311

Merged
merged 1 commit into from
Dec 12, 2023

Conversation

ulucinar
Copy link
Collaborator

@ulucinar ulucinar commented Dec 12, 2023

Description of your changes

This PR starts passing the registered schema.CustomizeDiffFuncs to the schema.schemaMap.Diff function so that the available CustomizeDiff functions in the underlying Terraform provider are utilized. We had previously considered using these custom diff functions but we could not do so previously.

The strategy is now to start supplying the custom diff functions from the native schema by default but for the providers that we need to validate these registered functions are working as intended, we will just remove, and thus prevent, the custom diff functions from the schema.

I have:

  • Read and followed Upjet's contribution process.
  • Run make reviewable to ensure this PR is ready for review.
  • Added backport release-x.y labels to auto-backport this PR if necessary.

How has this code been tested

Tested in crossplane-contrib/provider-upjet-gcp#424 with the BucketACL.storage` resource.

…rm SDK-based external client

Signed-off-by: Alper Rifat Ulucinar <[email protected]>
Copy link
Member

@sergenyalcin sergenyalcin left a comment

Choose a reason for hiding this comment

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

Thanks @ulucinar LGTM!

@ulucinar ulucinar merged commit 77613fd into crossplane:main Dec 12, 2023
7 checks passed
@ulucinar ulucinar deleted the enable-customizediff branch December 12, 2023 11:12
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.

2 participants