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

Implement Network Policy rule reconciler #55

Merged
merged 1 commit into from
Nov 15, 2019
Merged

Conversation

tnqn
Copy link
Member

@tnqn tnqn commented Nov 14, 2019

This patch implements the rule reconciler that caches the last realized state of each rule and invokes corresponding Openflow interfaces to reconcile the desired rule.

Besides, to generate uint32 Openflow ID, it implements an ID allocator.

@antrea-bot
Copy link
Collaborator

Can one of the admins verify this patch? Add one of the following comments to continue:
/add to whitelist
/ok to test
/recheck
/test e2e
/skip

@tnqn tnqn mentioned this pull request Nov 14, 2019
8 tasks
@tnqn tnqn changed the base branch from networkpolicy-agent to master November 14, 2019 07:54
}

r.Lock()
defer r.Unlock()
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need defer for such cases?

Copy link
Member Author

Choose a reason for hiding this comment

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

Changed to use sync.Map, PTAL.

@tnqn tnqn force-pushed the networkpolicy-reconciler branch 2 times, most recently from 999c277 to cadc78a Compare November 15, 2019 03:24
@tnqn
Copy link
Member Author

tnqn commented Nov 15, 2019

/test e2e

@tnqn
Copy link
Member Author

tnqn commented Nov 15, 2019

/recheck

@edwardbadboy
Copy link
Contributor

/test-e2e

This patch implements the rule reconciler that caches the last realized
state of each rule and invokes corresponding Openflow interfaces to
reconcile the desired rule.

Besides, to generate uint32 Openflow ID, it implements an ID allocator.
@antrea-bot
Copy link
Collaborator

Thanks for your PR.
Unit tests and code linters are run automatically every time the PR is updated.
E2e tests can only be triggered by a member of the vmware-tanzu organization. Regular contributors to the project should join the org.

The following commands are available:

  • /recheck: to re-trigger unit tests and code linters. This is done automatically when the PR is updated (e.g. a new commit is added) but this command is useful in case of transient errors with the CI system.
  • /test-e2e: to trigger e2e tests. This command can only be run by members of the vmware-tanzu organization

@tnqn
Copy link
Member Author

tnqn commented Nov 15, 2019

/test-e2e

@tnqn tnqn merged commit ba1e17e into master Nov 15, 2019
@tnqn tnqn deleted the networkpolicy-reconciler branch November 15, 2019 18:22
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.

4 participants