Antrea Traceflow should validate that destination port isn't empty when destination is a K8s Service #6594
Labels
area/ops/traceflow
Issues or PRs related to the Traceflow feature
kind/bug
Categorizes issue or PR as related to a bug.
Milestone
Describe the bug
Antrea Traceflow should validate that destination port isn't empty when provided destination is a K8s service.
If destination port is provided, it works fine but if it is missed it just uses destinaton Service IP(clusterIP) and runs Traceflow as Pod-to-external IP ICMP case which is incorrect.
To Reproduce
Run Antrea Traceflow with source as a Pod and destination as a K8s Service
antctl tf -S ns1/deployment1-cb9cdd4bd-62dbp -D ns1/svc2
Expected
It should return error that destination port is required when destination is a service.
Actual behavior
Additional context
Also,
antctl tf
should validate thatflow
arg shouldn't be empty when destination is a K8s service.The text was updated successfully, but these errors were encountered: