-
Notifications
You must be signed in to change notification settings - Fork 373
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up stale NetworkPolicies after reconnection (#704)
We must do a full sync between the NetworkPolicy cache and the latest objects after reconnecting to antrea-controller, otherwise stale NetworkPolicies won't be cleaned up and will cause unexpected behavior. This PR adds a dummy Bookmark event after initial events of a new watch so that antrea-agent can know its end and do an atomic update to cache which can identify stale objects.
- Loading branch information
Showing
18 changed files
with
792 additions
and
218 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.