diff --git a/resource3/plugins/binary/node.go b/resource3/plugins/binary/node.go index a6de6a531..391bae30b 100644 --- a/resource3/plugins/binary/node.go +++ b/resource3/plugins/binary/node.go @@ -45,7 +45,7 @@ func (p Plugin) SetNodeResourceCapacity(ctx context.Context, nodename string, re Resource: resource, ResourceRequest: resourceRequest, Delta: delta, - Decr: !incr, + Incr: incr, } resp := &plugintypes.SetNodeResourceCapacityResponse{} @@ -77,7 +77,7 @@ func (p Plugin) SetNodeResourceUsage(ctx context.Context, nodename string, resou Resource: resource, ResourceRequest: resourceRequest, Delta: delta, - Decr: !incr, + Incr: incr, } resp := &plugintypes.SetNodeResourceUsageResponse{} diff --git a/resource3/plugins/binary/types/node.go b/resource3/plugins/binary/types/node.go index 3c0561db7..4be209a07 100644 --- a/resource3/plugins/binary/types/node.go +++ b/resource3/plugins/binary/types/node.go @@ -29,7 +29,7 @@ type SetNodeResourceCapacityRequest struct { Resource *plugintypes.NodeResource `json:"resource" mapstructure:"resource"` ResourceRequest *plugintypes.NodeResource `json:"resource_request" mapstructure:"resource_request"` Delta bool `json:"delta" mapstructure:"delta"` - Decr bool `json:"decr" mapstructure:"decr"` + Incr bool `json:"incr" mapstructure:"incr"` } // GetNodeResourceInfoRequest . @@ -53,7 +53,7 @@ type SetNodeResourceUsageRequest struct { Resource *plugintypes.NodeResource `json:"resource" mapstructure:"resource"` ResourceRequest *plugintypes.NodeResource `json:"resource_request" mapstructure:"resource_request"` Delta bool `json:"delta" mapstructure:"delta"` - Decr bool `json:"decr" mapstructure:"decr"` + Incr bool `json:"incr" mapstructure:"incr"` } // GetMostIdleNodeRequest .