mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 11:21:47 +00:00
Merge pull request #81049 from MrHohn/svc-e2e-reachability-verbose
[e2e] Add verbose to reachability test commands
This commit is contained in:
commit
cbdb20c10d
@ -788,9 +788,9 @@ func testEndpointReachability(endpoint string, port int32, protocol v1.Protocol,
|
||||
cmd := ""
|
||||
switch protocol {
|
||||
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:
|
||||
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:
|
||||
e2elog.Failf("Service reachablity check is not supported for %v", protocol)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user