mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-11-28 03:47:34 +00:00
Copy PrettyPrintJSON to core framework
PrettyPrintJSON is most used e2emetrics function and that doesn't seem specific for metrics. The implementation itself is generic, so it is nice to move it to core framework for avoiding circular dependency.
This commit is contained in:
@@ -22,7 +22,7 @@ import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
|
||||
e2emetrics "k8s.io/kubernetes/test/e2e/framework/metrics"
|
||||
"k8s.io/kubernetes/test/e2e/framework"
|
||||
"k8s.io/kubernetes/test/e2e/perftype"
|
||||
"sync"
|
||||
)
|
||||
@@ -124,5 +124,5 @@ func (timer *TestPhaseTimer) PrintJSON() string {
|
||||
data.DataItems[0].Labels["ended"] = "false"
|
||||
}
|
||||
}
|
||||
return e2emetrics.PrettyPrintJSON(data)
|
||||
return framework.PrettyPrintJSON(data)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user