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

Error handling for AppliedToGroup SG delete. #259

Merged
merged 1 commit into from
Jun 27, 2023
Merged

Error handling for AppliedToGroup SG delete. #259

merged 1 commit into from
Jun 27, 2023

Conversation

Anandkumar26
Copy link
Contributor

Consider a scenario where ANP contains two rule-level AppliedToGroups. Delete one of the AppliedToGroup. If the ATGroup could not be deleted on the cloud, then the internal state of NP controller still contains the rules, while the rules are deleted on the cloud.

This PR tries to address the issue, by clearing the internal state when an ATGroup is deleted, so that if the ATGroup is re-added, then NP controller will be able to recover and realize the rules on the cloud.

@Anandkumar26
Copy link
Contributor Author

/nephe-test-e2e-kind

Consider a scenario where ANP contains two rule level
AppliedToGroups. Delete one of the AppliedToGroup.
If the ATGroup could not deleted on the cloud, then the
internal state of network policy controller still contains
the rules, while the rules are deleted on the cloud.

This PR tries addresses the issue, by clearing the
internal state when an ATGroup is deleted, so that
if the ATGroup is re-added, then NP controller will be
able to recover and realize the rules on the cloud.

Signed-off-by: Anand Kumar <[email protected]>
@reachjainrahul
Copy link
Contributor

/nephe-test-e2e-agentless

Copy link
Contributor

@reachjainrahul reachjainrahul left a comment

Choose a reason for hiding this comment

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

/LGTM

@reachjainrahul reachjainrahul merged commit c63a7d3 into main Jun 27, 2023
@reachjainrahul reachjainrahul deleted the npfix branch June 27, 2023 03:13
@reachjainrahul reachjainrahul added this to the Nephe v0.6.0 release milestone Jun 27, 2023
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.

2 participants