Skip to content

Commit f437ff7

Browse files
authored
Merge pull request kubernetes#87254 from egernst/lame-typo-fix
simple typo fix
2 parents 5500340 + cdd92d3 commit f437ff7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/kubelet/preemption/preemption.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,21 +132,21 @@ func getPodsToPreempt(pod *v1.Pod, pods []*v1.Pod, requirements admissionRequire
132132
return nil, fmt.Errorf("no set of running pods found to reclaim resources: %v", unableToMeetRequirements.toString())
133133
}
134134
// find the guaranteed pods we would need to evict if we already evicted ALL burstable and besteffort pods.
135-
guarateedToEvict, err := getPodsToPreemptByDistance(guaranteedPods, requirements.subtract(append(bestEffortPods, burstablePods...)...))
135+
guaranteedToEvict, err := getPodsToPreemptByDistance(guaranteedPods, requirements.subtract(append(bestEffortPods, burstablePods...)...))
136136
if err != nil {
137137
return nil, err
138138
}
139139
// Find the burstable pods we would need to evict if we already evicted ALL besteffort pods, and the required guaranteed pods.
140-
burstableToEvict, err := getPodsToPreemptByDistance(burstablePods, requirements.subtract(append(bestEffortPods, guarateedToEvict...)...))
140+
burstableToEvict, err := getPodsToPreemptByDistance(burstablePods, requirements.subtract(append(bestEffortPods, guaranteedToEvict...)...))
141141
if err != nil {
142142
return nil, err
143143
}
144144
// Find the besteffort pods we would need to evict if we already evicted the required guaranteed and burstable pods.
145-
bestEffortToEvict, err := getPodsToPreemptByDistance(bestEffortPods, requirements.subtract(append(burstableToEvict, guarateedToEvict...)...))
145+
bestEffortToEvict, err := getPodsToPreemptByDistance(bestEffortPods, requirements.subtract(append(burstableToEvict, guaranteedToEvict...)...))
146146
if err != nil {
147147
return nil, err
148148
}
149-
return append(append(bestEffortToEvict, burstableToEvict...), guarateedToEvict...), nil
149+
return append(append(bestEffortToEvict, burstableToEvict...), guaranteedToEvict...), nil
150150
}
151151

152152
// getPodsToPreemptByDistance finds the pods that have pod requests >= admission requirements.

0 commit comments

Comments
 (0)