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

Fix VPC CIDR Block Deletion #681

Merged
merged 1 commit into from Jun 2, 2021

Conversation

AmnaIrfan
Copy link
Contributor

@AmnaIrfan AmnaIrfan commented May 28, 2021

Signed-off-by: Amna Irfan amirfan@ea.com

Description of your changes

CIDR blocks are attached to VPCs so deleting a VPC in Crossplane automatically deletes the CIDR block in AWS. However the CIDR resource does not get deleted in Crossplane. The deletion gets stuck in a loop since AWS first tries to get the VPC and when the VPC doesn't exist it sends a VPC not found error while the code is waiting for a CIDR not found error.
We just need to account for the VPC not found error while deleting a CIDR block.

Fixes #677

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

  1. Create a VPC in Crossplane
  2. Create a CIDR block for that VPC
  3. Delete the VPC in Crossplane (it wont ask you to delete the CIDR block)
  4. Delete the CIDR block in Crossplane (it will no longer give an error that vpc doesn't exist)

@AmnaIrfan AmnaIrfan changed the title closed #677 - vpccidrblock deletion fix Fix VPC CIDR Block Deletion May 28, 2021
Signed-off-by: Amna Irfan <amirfan@ea.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 @AmnaIrfan !

@muvaf muvaf merged commit 9dbbea7 into crossplane-contrib:master Jun 2, 2021
tektondeploy pushed a commit to gtn3010/provider-aws that referenced this pull request Mar 12, 2024
…e-artifacts

Add caller workflow for publishing service artifacts
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.

Unable to delete the CIDR Block after VPC is deleted
2 participants