mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
lint: fix linter's complaints
Signed-off-by: Talor Itzhak <titzhak@redhat.com>
This commit is contained in:
parent
37bcd38785
commit
a56fde3694
@ -571,13 +571,13 @@ func (cm *containerManagerImpl) Start(ctx context.Context, node *v1.Node,
|
|||||||
// Initialize CPU manager
|
// Initialize CPU manager
|
||||||
err := cm.cpuManager.Start(cpumanager.ActivePodsFunc(activePods), sourcesReady, podStatusProvider, runtimeService, containerMap)
|
err := cm.cpuManager.Start(cpumanager.ActivePodsFunc(activePods), sourcesReady, podStatusProvider, runtimeService, containerMap)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("start cpu manager error: %v", err)
|
return fmt.Errorf("start cpu manager error: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Initialize memory manager
|
// Initialize memory manager
|
||||||
err = cm.memoryManager.Start(memorymanager.ActivePodsFunc(activePods), sourcesReady, podStatusProvider, runtimeService, containerMap)
|
err = cm.memoryManager.Start(memorymanager.ActivePodsFunc(activePods), sourcesReady, podStatusProvider, runtimeService, containerMap)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("start memory manager error: %v", err)
|
return fmt.Errorf("start memory manager error: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
// cache the node Info including resource capacity and
|
// cache the node Info including resource capacity and
|
||||||
|
Loading…
Reference in New Issue
Block a user