diff --git a/cluster/calcium/realloc.go b/cluster/calcium/realloc.go index 13c870dfc..2e32a8371 100644 --- a/cluster/calcium/realloc.go +++ b/cluster/calcium/realloc.go @@ -217,6 +217,9 @@ func (c *calcium) reallocNodesCPU( if err := c.store.UpdateNode(node); err != nil { return nil, err } + if _, ok := nodesCPUMap[cpu]; !ok { + nodesCPUMap[cpu] = NodeCPUMap{} + } nodesCPUMap[cpu][node] = containersCPUMap } }