filter out down nodes
@@ -18,7 +18,7 @@ func (c *Calcium) CalculateCapacity(ctx context.Context, opts *types.DeployOptio
Total: 0,
NodeCapacities: map[string]int{},
}
- return msg, c.withNodesLocked(ctx, opts.Podname, opts.Nodenames, nil, true, func(nodeMap map[string]*types.Node) error {
+ return msg, c.withNodesLocked(ctx, opts.Podname, opts.Nodenames, nil, false, func(nodeMap map[string]*types.Node) error {
if opts.DeployStrategy != strategy.Dummy {
if _, msg.NodeCapacities, err = c.doAllocResource(ctx, nodeMap, opts); err != nil {
return errors.WithStack(err)
