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 reach command #19

Merged
merged 3 commits into from
Dec 13, 2024
Merged

Implement reach command #19

merged 3 commits into from
Dec 13, 2024

Conversation

yokaze
Copy link
Contributor

@yokaze yokaze commented Dec 9, 2024

This PR implements reach command to show detailed traffic policy between two pods.

$ npv reach --from test/self-5b9b6f4f84-dh79v --to test/l4-ingress-explicit-deny-any-688bbf4987-rg824 
NAMESPACE NAME                                          DIRECTION POLICY IDENTITY PROTOCOL PORT BYTES PACKETS
test      self-5b9b6f4f84-dh79v                         Egress    Allow  31610    TCP      53   0     0
test      self-5b9b6f4f84-dh79v                         Egress    Allow  31610    UDP      53   0     0
test      self-5b9b6f4f84-dh79v                         Egress    Allow  31610    SCTP     53   0     0
test      l4-ingress-explicit-deny-any-688bbf4987-rg824 Ingress   Deny   36231    TCP      53   0     0
test      l4-ingress-explicit-deny-any-688bbf4987-rg824 Ingress   Deny   36231    UDP      53   0     0
test      l4-ingress-explicit-deny-any-688bbf4987-rg824 Ingress   Deny   36231    SCTP     53   0     0

@yokaze yokaze self-assigned this Dec 9, 2024
@yokaze yokaze changed the base branch from main to refactor December 9, 2024 08:02
@yokaze yokaze force-pushed the implement-reach branch 2 times, most recently from daceaf6 to eeff440 Compare December 9, 2024 09:51
Signed-off-by: Daichi Sakaue <[email protected]>
@yokaze yokaze changed the base branch from refactor to main December 10, 2024 09:13
Signed-off-by: Daichi Sakaue <[email protected]>
@yokaze yokaze marked this pull request as ready for review December 11, 2024 01:55
@yokaze yokaze requested a review from chez-shanpu December 11, 2024 01:55
Signed-off-by: Daichi Sakaue <[email protected]>
Copy link
Contributor

@chez-shanpu chez-shanpu left a comment

Choose a reason for hiding this comment

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

LGTM

@yokaze yokaze merged commit 5c94ea5 into main Dec 13, 2024
1 check passed
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.

2 participants