-
Notifications
You must be signed in to change notification settings - Fork 540
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃悰 Persist AWSCluster/AWSMachine finalizers immediately to prevent orphaned AWS resources #1455
馃悰 Persist AWSCluster/AWSMachine finalizers immediately to prevent orphaned AWS resources #1455
Conversation
I believe all review comments are resolved. |
Should we do the same thing for AWSMachine? |
... But just got to thinking ... if the capa controller was down for some reason when the AWSMachine was created ... is it possible the bootstrap data could be created before the first AWSMachine reconciliation ran? If so ... then it's possible a delete could come in during EC2 creation and delete the AWSMachine before the EC2 creation is finished and the finalizer is added. |
Better to be safe, I think |
ok, thanks @ncdc ... I'll add it to AWSMachine as well. Assuming we want it in this PR. I'll add it and force-push. Just let me know if you want it in a separate PR |
This one's good, thanks. |
/held @aaroniscode remove hold when ready. |
/hold |
updated the PR to include AWSMachine, so both now immediately persist the finalizer after adding /unhold edit ... somehow missed the edits in the last force push. it's there now. |
not sure why this test failed ... i don't see an obvious reason in the code going to try to re-run /retest |
so it turned out that having the |
ready for review again |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aaroniscode, ncdc The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
this prevents a delete occuring before the finalizer has been added and orphaning AWS resources
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/lgtm |
What this PR does / why we need it:
If Cluster/AWSCluster resources are created and deleted relatively quickly (seconds up to a minute or so) the AWS resources in the VPC are orphaned as the AWSCluster is deleted without destroying the resources.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #1454