mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 10:51:29 +00:00
Merge pull request #112516 from aojea/topology_log
fix endpoint slice controller logging format error
This commit is contained in:
commit
7f672cef0a
@ -212,7 +212,7 @@ func (t *TopologyCache) SetNodes(nodes []*v1.Node) {
|
|||||||
defer t.lock.Unlock()
|
defer t.lock.Unlock()
|
||||||
|
|
||||||
if totalCPU.IsZero() || !sufficientNodeInfo || len(cpuByZone) < 2 {
|
if totalCPU.IsZero() || !sufficientNodeInfo || len(cpuByZone) < 2 {
|
||||||
klog.V(2).Infof("Insufficient node info for topology hints (%d zones, %s CPU, %t)", len(cpuByZone), totalCPU.MilliValue(), sufficientNodeInfo)
|
klog.V(2).Infof("Insufficient node info for topology hints (%d zones, %s CPU, %t)", len(cpuByZone), totalCPU.String(), sufficientNodeInfo)
|
||||||
t.sufficientNodeInfo = false
|
t.sufficientNodeInfo = false
|
||||||
t.cpuByZone = nil
|
t.cpuByZone = nil
|
||||||
t.cpuRatiosByZone = nil
|
t.cpuRatiosByZone = nil
|
||||||
|
Loading…
Reference in New Issue
Block a user