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

Set diff state's Attributes to nil if the resource does not exist #318

Merged
merged 1 commit into from
Dec 25, 2023

Conversation

ulucinar
Copy link
Collaborator

@ulucinar ulucinar commented Dec 22, 2023

Description of your changes

We need to set diff state's Attributes to nil if the resource does not exist.

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

Verified in crossplane-contrib/provider-upjet-aws#1037 & crossplane-contrib/provider-upjet-azure#592.

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. I validated this PR fixes the issue that we observed in azure.

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

@ulucinar ulucinar merged commit 81e2620 into crossplane:main Dec 25, 2023
7 checks passed
@ulucinar ulucinar deleted the fix-diff-state branch December 25, 2023 08:49
mbbush added a commit to mbbush/upjet that referenced this pull request Jan 23, 2024
mbbush added a commit to mbbush/upjet that referenced this pull request Jan 24, 2024
This reverts commit 81e2620, reversing
changes made to 1d547af.

Signed-off-by: Matt Bush <matt@span.io>
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