Merge pull request #81049 from MrHohn/svc-e2e-reachability-verbose

[e2e] Add verbose to reachability test commands
This commit is contained in:
Kubernetes Prow Robot 2019-08-08 06:28:10 -07:00 committed by GitHub
commit cbdb20c10d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
}