mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-15 14:14:39 +00:00
improve hairpin warning message for network policy tests
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user