validate scheduler policy instead of the decoded policy in compatibility_test

This commit is contained in:
Ahmad Diaa
2019-09-18 19:21:41 +02:00
parent 104e368860
commit 009ffaf803
5 changed files with 84 additions and 14 deletions

View File

@@ -163,6 +163,9 @@ func (es mockScheduler) Predicates() map[string]predicates.FitPredicate {
func (es mockScheduler) Prioritizers() []priorities.PriorityConfig {
return nil
}
func (es mockScheduler) Extenders() []algorithm.SchedulerExtender {
return nil
}
func (es mockScheduler) Preempt(pc *framework.PluginContext, pod *v1.Pod, scheduleErr error) (*v1.Node, []*v1.Pod, []*v1.Pod, error) {
return nil, nil, nil, nil