-
Notifications
You must be signed in to change notification settings - Fork 20
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
Support NSX default project for SecurityPolicy #670
Support NSX default project for SecurityPolicy #670
Conversation
7866d70
to
512634f
Compare
512634f
to
276401c
Compare
5894d1a
to
07dd954
Compare
9bb921a
to
6378c2c
Compare
6378c2c
to
dddc42e
Compare
dddc42e
to
ae06e99
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The logic LGTM. Please correct the typo in commit message:
/orgs/default/projects//infra/domains/default/groups
-> /orgs/default/projects/<project-id>/infra/domains/default/groups
HA API
-> HAPI
ae06e99
to
623b2f4
Compare
Thanks so much, Qian, Much appreciation for taking time during vacation to review my code. |
Starting from VPC 2.0, it's not allowed to created objects under /orgs/default/projects/default/infra path. So for NetworkPolicy/SecurityPolicy with namespaceSelector, in order to create Groups under Default Project, it's needed to create them under /infra/domains/default/groups/<>. As for Groups under non default Project, it's still allowed to create them under /orgs/default/projects/<custom project>/infra/domains/default/groups. This patch is to: 1. Support NetworkPolicy/SecurityPolicy creation under Default Project. 2. Refactor VPC SecurityPolicy HAPI call process for both creation and deletion. 3. Refactor VPC SecurityPolicy store apply process after creation and deletion.
623b2f4
to
4a0a4fb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/e2e |
Starting from VPC 2.0, it's not allowed to created objects under /orgs/default/projects/default/infra path. So for NetworkPolicy/SecurityPolicy with namespaceSelector, in order to create Groups under Default Project, it's needed to create them under /infra/domains/default/groups/<>. As for Groups under non default Project, it's still allowed to create them under /orgs/default/projects/<custom project>/infra/domains/default/groups.
This patch is to:
Test done: