mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-11 21:12:07 +00:00
e2e: fix logging the latest cpu summary
This commit is contained in:
parent
f52e0e5e1f
commit
cdece9922b
@ -96,7 +96,6 @@ func runResourceTrackingTest(framework *Framework, podsPerNode int, nodeNames se
|
|||||||
|
|
||||||
By("Reporting overall resource usage")
|
By("Reporting overall resource usage")
|
||||||
logPodsOnNodes(framework.Client, nodeNames.List())
|
logPodsOnNodes(framework.Client, nodeNames.List())
|
||||||
rm.LogLatest()
|
|
||||||
usageSummary, err := rm.GetLatest()
|
usageSummary, err := rm.GetLatest()
|
||||||
Expect(err).NotTo(HaveOccurred())
|
Expect(err).NotTo(HaveOccurred())
|
||||||
Logf("%s", rm.FormatResourceUsage(usageSummary))
|
Logf("%s", rm.FormatResourceUsage(usageSummary))
|
||||||
|
@ -585,7 +585,7 @@ func (r *resourceMonitor) LogLatest() {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
Logf("%v", err)
|
Logf("%v", err)
|
||||||
}
|
}
|
||||||
r.FormatResourceUsage(summary)
|
Logf(r.FormatResourceUsage(summary))
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *resourceMonitor) FormatResourceUsage(s resourceUsagePerNode) string {
|
func (r *resourceMonitor) FormatResourceUsage(s resourceUsagePerNode) string {
|
||||||
|
Loading…
Reference in New Issue
Block a user