mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
[e2e] Add verbose to reachability test commands
This commit is contained in:
parent
b409073e99
commit
8d84a1ea76
@ -788,9 +788,9 @@ func testEndpointReachability(endpoint string, port int32, protocol v1.Protocol,
|
|||||||
cmd := ""
|
cmd := ""
|
||||||
switch protocol {
|
switch protocol {
|
||||||
case v1.ProtocolTCP:
|
case v1.ProtocolTCP:
|
||||||
cmd = fmt.Sprintf("nc -z -t -w 2 %s %v", endpoint, port)
|
cmd = fmt.Sprintf("nc -zv -t -w 2 %s %v", endpoint, port)
|
||||||
case v1.ProtocolUDP:
|
case v1.ProtocolUDP:
|
||||||
cmd = fmt.Sprintf("nc -z -u -w 2 %s %v", endpoint, port)
|
cmd = fmt.Sprintf("nc -zv -u -w 2 %s %v", endpoint, port)
|
||||||
default:
|
default:
|
||||||
e2elog.Failf("Service reachablity check is not supported for %v", protocol)
|
e2elog.Failf("Service reachablity check is not supported for %v", protocol)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user