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 NoSuchHostedZone errors on ResourceRecordSet delete #1255

Merged
merged 1 commit into from
Apr 12, 2022

Conversation

bobh66
Copy link
Contributor

@bobh66 bobh66 commented Apr 7, 2022

Signed-off-by: Bob Haddleton bob.haddleton@nokia.com

Description of your changes

Updated the ResourceRecordSet controller to handle the case where the HostedZone has been deleted before the ResourceRecordSet, to prevent the ResourceRecordSet from being permanently stuck.

If the HostedZone does not exist then the ResourceRecordSet cannot exist and so this case can be handled as equivalent to a "NotFound".

Fixes #1251

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

Tested in a local Kind environment. Reproduced the problem locally, then applied the changes and verified that the ResourceRecordSet gets deleted when the HostedZone has already been deleted.

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 fix

@haarchri haarchri merged commit bb3583e into crossplane-contrib:master Apr 12, 2022
febarbosa182 pushed a commit to febarbosa182/provider-aws that referenced this pull request May 23, 2022
…e-contrib#1255)

Signed-off-by: Bob Haddleton <bob.haddleton@nokia.com>
Signed-off-by: Felipe Barbosa <lybrbarbosa@gmail.com>
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.

Delete of ResourceRecordSet fails when the HostedZone is deleted first
2 participants