-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Dangling fix AWS Shield Protections after Ingress are deleted #4042 #4048
base: main
Are you sure you want to change the base?
Dangling fix AWS Shield Protections after Ingress are deleted #4042 #4048
Conversation
|
Welcome @Lahutsin! |
Hi @Lahutsin. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Lahutsin The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
d312780
to
b3a5a35
Compare
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.
Hi. I am really sorry, but I'm trying to understand what this code change accomplishes. It looks like we are just re-reading the protection result after deletion and throwing an error if the protection still exists. Is the implication here that the delete call is not working?
Hello. Thank you for your comment! I understand your concerns and suggest discussing this in more detail. For additional context, please refer to the issue discussion Issue 4042. You are correct in interpreting that the code change involves re-reading the protection result after attempting to delete it and then issuing an error if the protection still exists. It is implied that the deletion call is not necessarily completely broken, but rather that it might not have been fully executed or reflected at the time of checking the result. Re-reading and error handling are intended to detect situations where the protection should have been deleted but, for some reason (such as propagation delays, API issues, etc.), it was not deleted in a timely manner. Thus, this code can provide greater reliability and handle edge cases where deletion takes longer than expected or does not work as planned, issuing an error in such cases for a better understanding of what went wrong. If you have specific suggestions or questions, let's discuss them to find the best solution. |
I talked with @shraddhabang about this issue. It looks like the deletion logic is incorrect as we don't tag the resource correctly. |
Issue
Description
This is my first fix contribution. I am open to any discussion to improve my PR's.
DeleteProtection Method:
verifyProtectionDeleted Method:
Checklist