Skip to content

Commit

Permalink
Controller support for ExternalEntity in Antrea NetworkPolicy (antrea…
Browse files Browse the repository at this point in the history
…-io#1084)

* Agent supports ExternalEntity.

This commit moves ToAddresses/FromAddresses in CompletedRule and AddressSetByGroup in ruleCache
to use GroupMemberSet instead of GroupMmeberPodSet. Thus both Pods and ExternalEntities are
expressed as GroupMember when in these fields.

Pods in appliedTo field continue be expressed by existing GroupMemberPod, and migration to GroupMember shall
be done in a subsequent PR.

* Add support for ANP and externalEntities in controller

* Unify functions for Pod and ExternalEntity in networkpolicy controller

* Improve UT coverage

* Address comments

* Resolve more comments

Co-authored-by: Su Wang <suw@vmware.com>
  • Loading branch information
2 people authored and GraysonWu committed Sep 23, 2020
1 parent 7c825a9 commit 426d0d7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions build/yamls/base/controller-rbac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,14 @@ rules:
- patch
- create
- delete
- apiGroups:
- core.antrea.tanzu.vmware.com
resources:
- externalentities
verbs:
- get
- watch
- list
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
Expand Down

0 comments on commit 426d0d7

Please sign in to comment.