From 7fdc75388dac2f33ce9cd5157f1cb7478a860469 Mon Sep 17 00:00:00 2001 From: zc Date: Thu, 26 Nov 2020 16:14:42 +0800 Subject: [PATCH] filter out down nodes --- cluster/calcium/capacity.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cluster/calcium/capacity.go b/cluster/calcium/capacity.go index a3500be72..ebc02d215 100644 --- a/cluster/calcium/capacity.go +++ b/cluster/calcium/capacity.go @@ -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)