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

Unitary FirewallRule reconciliation #165

Merged
merged 5 commits into from
Feb 13, 2025

Conversation

klibr007
Copy link

@klibr007 klibr007 commented Feb 5, 2025

This pr is to change the way reconciliation is done for firewallrule resources. The goal has been to reconcile only one firewallrule during the reconciliation of a firewallrule. So either we add the rule if it doesn't exist or we delete it if it has to.
What I have checked:
Security group creation
Network interface association
Adding one rule that doesn't exist
Adding 201 rules reconcilition is done unitary and there is one firewallrule pending
Deleting all firewallrule simultanously the security group is deleted and the firewallrule are removed during their reconciliation
Deleting firewallrules one by one, firewallrules are deleted one by one and the securitygroup is deleted during the reconciliation of the last firewallrule
Removing manually a rule from security group, if the firewallrule still exists il will be recreated
If a rule is added manually in the security group it will be removed

@klibr007 klibr007 changed the base branch from main to release/0.13.0 February 5, 2025 08:54
@klibr007 klibr007 force-pushed the firewallcontroller-unitary-reconcilitaion branch 2 times, most recently from f447841 to 93e0264 Compare February 7, 2025 07:27
@klibr007 klibr007 marked this pull request as ready for review February 7, 2025 07:27
@klibr007 klibr007 requested a review from a team February 7, 2025 07:27
@klibr007 klibr007 force-pushed the firewallcontroller-unitary-reconcilitaion branch 3 times, most recently from eecd193 to 98d6718 Compare February 7, 2025 08:50
@klibr007 klibr007 force-pushed the firewallcontroller-unitary-reconcilitaion branch from 98d6718 to 7840d11 Compare February 7, 2025 15:17
Copy link
Contributor

@antonincms antonincms left a comment

Choose a reason for hiding this comment

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

Hello @klibr007, thanks for the PR, here is a first review.

@klibr007 klibr007 force-pushed the firewallcontroller-unitary-reconcilitaion branch from cfa964c to 16b4934 Compare February 13, 2025 07:15
delete securitygroup if removing last rule
@klibr007 klibr007 force-pushed the firewallcontroller-unitary-reconcilitaion branch from 16b4934 to 27d4bd4 Compare February 13, 2025 07:19
@antonincms antonincms changed the title Firewallcontroller unitary reconcilitaion Unitary FirewallRule reconciliation Feb 13, 2025
Copy link
Contributor

@antonincms antonincms 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 the PR @klibr007 !

@antonincms antonincms merged commit ce31565 into release/0.13.0 Feb 13, 2025
2 checks passed
@antonincms antonincms deleted the firewallcontroller-unitary-reconcilitaion branch February 13, 2025 10:04
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.

3 participants