Merge pull request #98584 from mattfenwick/issue-98581

improve hairpin warning message for network policy tests
This commit is contained in:
Kubernetes Prow Robot 2021-01-29 17:22:05 -08:00 committed by GitHub
commit 573a6a9faa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -173,7 +173,7 @@ func (r *Reachability) Summary(ignoreLoopback bool) (trueObs int, falseObs int,
func (r *Reachability) PrintSummary(printExpected bool, printObserved bool, printComparison bool) {
right, wrong, ignored, comparison := r.Summary(ignoreLoopback)
if ignored > 0 {
framework.Logf("warning: the results of %d pod->pod cases have been ignored", ignored)
framework.Logf("warning: this test doesn't take into consideration hairpin traffic, i.e. traffic whose source and destination is the same pod: %d cases ignored", ignored)
}
framework.Logf("reachability: correct:%v, incorrect:%v, result=%t\n\n", right, wrong, wrong == 0)
if printExpected {