@@ -132,21 +132,21 @@ func getPodsToPreempt(pod *v1.Pod, pods []*v1.Pod, requirements admissionRequire
132
132
return nil , fmt .Errorf ("no set of running pods found to reclaim resources: %v" , unableToMeetRequirements .toString ())
133
133
}
134
134
// 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 ... )... ))
136
136
if err != nil {
137
137
return nil , err
138
138
}
139
139
// 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 ... )... ))
141
141
if err != nil {
142
142
return nil , err
143
143
}
144
144
// 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 ... )... ))
146
146
if err != nil {
147
147
return nil , err
148
148
}
149
- return append (append (bestEffortToEvict , burstableToEvict ... ), guarateedToEvict ... ), nil
149
+ return append (append (bestEffortToEvict , burstableToEvict ... ), guaranteedToEvict ... ), nil
150
150
}
151
151
152
152
// getPodsToPreemptByDistance finds the pods that have pod requests >= admission requirements.
0 commit comments