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

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) { func (r *Reachability) PrintSummary(printExpected bool, printObserved bool, printComparison bool) {
right, wrong, ignored, comparison := r.Summary(ignoreLoopback) right, wrong, ignored, comparison := r.Summary(ignoreLoopback)
if ignored > 0 { 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) framework.Logf("reachability: correct:%v, incorrect:%v, result=%t\n\n", right, wrong, wrong == 0)
if printExpected { if printExpected {