Skip to content

Use Terraform name instead of CRD field name while resolving references#56

Merged
ulucinar merged 1 commit intocrossplane:mainfrom
ulucinar:fix-55
Aug 5, 2022
Merged

Use Terraform name instead of CRD field name while resolving references#56
ulucinar merged 1 commit intocrossplane:mainfrom
ulucinar:fix-55

Conversation

@ulucinar
Copy link
Collaborator

@ulucinar ulucinar commented Aug 3, 2022

Description of your changes

Fixes #55
Depends on: #15

I have:

  • Read and followed Crossplane'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

Manually tested using the NetworkInterfaceSgAttachment resource.

Copy link
Member

Choose a reason for hiding this comment

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

So, we used to give fieldName but now field_name. How is this working without a change in other places that processes the output here? Am I missing something?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

What Terraformed.GetObservation and Terraformed.GetParameters both return is a map keyed with Terraform argument & attribute names (although they are serialized from spec.forProvider and status.atProvider of the respective CRDs).

Copy link
Member

Choose a reason for hiding this comment

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

Got it, so it wasn't working before anyway I guess. Thanks for the explanation!

Signed-off-by: Alper Rifat Ulucinar <ulucinar@users.noreply.github.com>
Copy link
Member

@muvaf muvaf 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 !

@ulucinar ulucinar merged commit 3fa8995 into crossplane:main Aug 5, 2022
@ulucinar ulucinar deleted the fix-55 branch August 5, 2022 08:48
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.

Transient references do not work

2 participants