Skip to content

Commit 805fed1

Browse files
Fix the type for preemption possibility function (#5744)
Co-authored-by: Michal Wozniak <michalwozniak@google.com>
1 parent 81cc65a commit 805fed1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/scheduler/flavorassigner/flavorassigner.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ const (
330330
fit
331331
)
332332

333-
func fromPreemptionPosibility(preemptionPossibility preemptioncommon.PreemptionPossibility) granularMode {
333+
func fromPreemptionPossibility(preemptionPossibility preemptioncommon.PreemptionPossibility) granularMode {
334334
switch preemptionPossibility {
335335
case preemptioncommon.NoCandidates:
336336
return noPreemptionCandidates
@@ -768,7 +768,7 @@ func (a *FlavorAssigner) fitsResourceQuota(log logr.Logger, fr resources.FlavorR
768768
fr.Resource, fr.Flavor, resources.ResourceQuantityString(fr.Resource, val-available))
769769

770770
if val <= rQuota.Nominal || mayReclaimInHierarchy || a.canPreemptWhileBorrowing() {
771-
mode := fromPreemptionPosibility(a.oracle.SimulatePreemption(log, a.cq, *a.wl, fr, val))
771+
mode := fromPreemptionPossibility(a.oracle.SimulatePreemption(log, a.cq, *a.wl, fr, val))
772772
return mode, borrow, &status
773773
}
774774
return noFit, borrow, &status

0 commit comments

Comments
 (0)