diff --git a/pkg/common/resource.go b/pkg/common/resource.go index cec9097..b3efa37 100644 --- a/pkg/common/resource.go +++ b/pkg/common/resource.go @@ -139,6 +139,9 @@ func (r *Resource) SetCapacityToNode(node *corev1.Node) { corev1.ResourceEphemeralStorage: empStorage, } for name, quota := range r.Custom { + if quota.Sign() < 0 { + continue + } node.Status.Capacity[name] = quota }