pbacsko commented on code in PR #975:
URL: https://github.com/apache/yunikorn-core/pull/975#discussion_r1779538030
##########
pkg/scheduler/objects/allocation.go:
##########
@@ -135,9 +151,19 @@ func NewAllocationFromSI(alloc *si.Allocation) *Allocation
{
allocated: allocated,
nodeID: nodeID,
bindTime: bindTime,
+ foreign: foreign,
+ preemptable: preemptable,
}
}
+// NewAllocationFromSIAllocated creates an Allocation where the "allocated"
flag is always true,
+// regardless whehether the NodeID if empty or not. Used for testing.
+func NewAllocationFromSIAllocated(siAlloc *si.Allocation) *Allocation {
Review Comment:
Found a way to work it around
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]