-
Notifications
You must be signed in to change notification settings - Fork 242
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
compact: Always print original source on the left #533
Conversation
this is a breaking change since it modifies an existing format. we could introduce another format instead but i wasn't sure if it's worth it. |
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.
this is a breaking change since it modifies an existing format. we could introduce another format instead but i wasn't sure if it's worth it.
It is indeed a breaking change but I'm not too worried about it. Users wanting to process the hubble observe output likely use a format that is more appropriate for this purpose such as JSON. I think that this change makes the output much more readable so imho it is for the better. We should make it clear in the release notes that this is a breaking change though.
36f97b0
to
a23e781
Compare
Keep the original source on the left and use "<-" for reply packets. If IsReply field is not set, the direction is set to "<>". Before: ``` 2021-04-22T03:51:42Z: 10.168.0.11:33192 -> kube-system/kube-dns-5d54b45645-p9kvw:8081 to-endpoint FORWARDED (TCP Flags: SYN) 2021-04-22T03:51:42Z: kube-system/kube-dns-5d54b45645-p9kvw:8081 -> 10.168.0.11:33192 to-stack FORWARDED (TCP Flags: SYN, ACK) 2021-04-22T03:51:42Z: 10.168.0.11:33192 -> kube-system/kube-dns-5d54b45645-p9kvw:8081 to-endpoint FORWARDED (TCP Flags: ACK) 2021-04-22T03:51:42Z: 10.168.0.11:33192 -> kube-system/kube-dns-5d54b45645-p9kvw:8081 to-endpoint FORWARDED (TCP Flags: ACK, PSH) 2021-04-22T03:51:42Z: kube-system/kube-dns-5d54b45645-p9kvw:8081 -> 10.168.0.11:33192 to-stack FORWARDED (TCP Flags: ACK, PSH) 2021-04-22T03:51:42Z: kube-system/kube-dns-5d54b45645-p9kvw:8081 -> 10.168.0.11:33192 to-stack FORWARDED (TCP Flags: ACK, FIN) 2021-04-22T03:51:42Z: 10.168.0.11:33192 -> kube-system/kube-dns-5d54b45645-p9kvw:8081 to-endpoint FORWARDED (TCP Flags: ACK, FIN) ``` After: ``` 2021-04-22T03:50:02Z: 10.168.0.11:60982 -> kube-system/kube-dns-5d54b45645-p9kvw:8081 to-endpoint FORWARDED (TCP Flags: SYN) 2021-04-22T03:50:02Z: 10.168.0.11:60982 <- kube-system/kube-dns-5d54b45645-p9kvw:8081 to-stack FORWARDED (TCP Flags: SYN, ACK) 2021-04-22T03:50:02Z: 10.168.0.11:60982 -> kube-system/kube-dns-5d54b45645-p9kvw:8081 to-endpoint FORWARDED (TCP Flags: ACK) 2021-04-22T03:50:02Z: 10.168.0.11:60982 -> kube-system/kube-dns-5d54b45645-p9kvw:8081 to-endpoint FORWARDED (TCP Flags: ACK, PSH) 2021-04-22T03:50:02Z: 10.168.0.11:60982 <- kube-system/kube-dns-5d54b45645-p9kvw:8081 to-stack FORWARDED (TCP Flags: ACK, PSH) 2021-04-22T03:50:02Z: 10.168.0.11:60982 <- kube-system/kube-dns-5d54b45645-p9kvw:8081 to-stack FORWARDED (TCP Flags: ACK, FIN) 2021-04-22T03:50:02Z: 10.168.0.11:60982 -> kube-system/kube-dns-5d54b45645-p9kvw:8081 to-endpoint FORWARDED (TCP Flags: ACK, FIN) ``` Signed-off-by: Michi Mutsuzaki <michi@isovalent.com>
a23e781
to
ffcd479
Compare
@michi-covalent do we need to "port" this patch to cilium-cli as well? |
Keep the original source on the left and use "<-" for reply packets.
Before:
After:
Signed-off-by: Michi Mutsuzaki michi@isovalent.com