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

antctl support for cnp and anp #10

Closed
wants to merge 8 commits into from
Closed

antctl support for cnp and anp #10

wants to merge 8 commits into from

Conversation

GraysonWu
Copy link
Owner

After support CNP and ANP, some name and namespace based functions no longer work. Here add a struct called NetworkPolicyQueryFilter which can be used to query NetworkPolicies and easy to extend in future.
The logic of the filter match is that if a NetworkPolicy can match all provided attributes of a filter then they are matched.
Also add more info into result of antctl get netpol like sourceType, Prioriy, TierPriority.

codegen and fix UT

revert changes on this file, accidently submit it

change response while no resource are found fix e2e test

Add aliases to -r --reference option

Update pkg/agent/apiserver/handlers/networkpolicy/handler.go

Simplify the process of func NewFilterFromURLQuery

Co-authored-by: Dyanngg yxd155@case.edu

@GraysonWu GraysonWu force-pushed the antctl-cnp-anp branch 6 times, most recently from a133bb6 to 9a7eba6 Compare October 2, 2020 22:39
@GraysonWu GraysonWu force-pushed the antctl-cnp-anp branch 4 times, most recently from fd4b1c6 to 5f3926e Compare October 6, 2020 21:16
@GraysonWu GraysonWu force-pushed the antctl-cnp-anp branch 8 times, most recently from cdf8ef2 to b3119c6 Compare October 16, 2020 19:20
jianjuns and others added 8 commits October 19, 2020 12:54
…-io#1348)

* Move contributor docs and design docs to separate directories

After the change, two sub-directories "contributors" and "design" are
created under the "/docs" directory:
    docs/contributors/:
    code-generation.md eks-terraform.md github-labels.md issue-management.md manual-installation.md

    docs/design/:
    architecture.md ovs-pipeline.md policy-only.md windows-design.md
Also move "ROADMAP.md" to "docs/roadmap.md".

* Update doc links.
Read featuregate status instead of indirect checking to
determine whether a feature is enabled.

Signed-off-by: Weiqiang Tang <weiqiangt@vmware.com>
With L3 flows, Pod-to-Pod traffic will no longer go through gateway
interfaces. For Pod-to-Service traffic, Linux doesn't allow sending
redirect packets for NAT'd connections. Therefore, configuring
send_redirects is no longer needed.
1. Set IP protocol number according to the Service protocol type in "learn" flow.
2. Add integration test cases to ensure the flow is realized as expected.
For routine maintenance tasks that need to be performed for the project,
e.g. upgrading some software dependency version. I expect most of these
tasks will have to do with infra & test infra.
After support CNP and ANP, some name and namespace based functions no longer work. Here add a struct called NetworkPolicyQueryFilter which can be used to query NetworkPolicies and easy to extend in future.
The logic of the filter match is that if a NetworkPolicy can match all provided attributes of a filter then they are matched.
Also add more info into result of antctl get netpol like sourceType, Prioriy, TierPriority.

codegen and fix UT

revert changes on this file, accidently submit it

change response while no resource are found fix e2e test

Add aliases to -r --reference option

Update pkg/agent/apiserver/handlers/networkpolicy/handler.go

Simplify the process of `func NewFilterFromURLQuery`

Co-authored-by: Dyanngg <yxd155@case.edu>
From pkg/apis/controlplane/v1beta1/types.go
To pkg/querier/querier.go
Change NetworkPolicyQueryFilter in map or argument from struct to pointer
Change -r reference to -T type
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.

6 participants