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 VPCCIDRBlock delete case in Observe #1730

Merged
merged 1 commit into from
Apr 19, 2023

Conversation

bobh66
Copy link
Contributor

@bobh66 bobh66 commented Apr 18, 2023

Description of your changes

The VPCCIDRBlock association is never actually removed from the VPC when the VPCCIDRBlock is deleted, it is put into the disassociated state where it remains until the VPC is deleted.

This change modifies the Observe function to check to see if the managed resource has been deleted when it finds the VPCCIDRBlock is in the disassociated state and return ResourceExists: false so that the reconciler will remove the finalizer and allow the MR to be deleted.

Fixes #1729

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable test to ensure this PR is ready for review.

How has this code been tested

Verified that the VPCCIDRBlock resource is deleted properly when this fix is applied.

Signed-off-by: Bob Haddleton <bob.haddleton@nokia.com>
Copy link
Member

@haarchri haarchri left a comment

Choose a reason for hiding this comment

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

Thanks for this

@haarchri haarchri merged commit d454139 into crossplane-contrib:master Apr 19, 2023
8 checks passed
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.

VPCCIDRBlock resource is stuck in the deleting state
2 participants