File tree 1 file changed +1
-12
lines changed
plugin/pkg/scheduler/algorithmprovider/defaults
1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -238,7 +238,7 @@ func GetEquivalencePod(pod *v1.Pod) interface{} {
238
238
// to be equivalent
239
239
if len (pod .OwnerReferences ) != 0 {
240
240
for _ , ref := range pod .OwnerReferences {
241
- if * ref .Controller && isValidControllerKind ( ref . Kind ) {
241
+ if * ref .Controller {
242
242
equivalencePod .ControllerRef = ref
243
243
// a pod can only belongs to one controller
244
244
break
@@ -248,17 +248,6 @@ func GetEquivalencePod(pod *v1.Pod) interface{} {
248
248
return & equivalencePod
249
249
}
250
250
251
- // isValidControllerKind checks if a given controller's kind can be applied to equivalence pod algorithm.
252
- func isValidControllerKind (kind string ) bool {
253
- switch kind {
254
- // list of kinds that we cannot handle
255
- case StatefulSetKind :
256
- return false
257
- default :
258
- return true
259
- }
260
- }
261
-
262
251
// EquivalencePod is a group of pod attributes which can be reused as equivalence to schedule other pods.
263
252
type EquivalencePod struct {
264
253
ControllerRef metav1.OwnerReference
You can’t perform that action at this time.
0 commit comments