Scheduler extension

This commit is contained in:
Ravi Gadde
2015-09-03 23:50:14 -07:00
parent ef84c57965
commit cadc24e9fd
20 changed files with 1278 additions and 138 deletions

View File

@@ -34,5 +34,10 @@ func ValidatePolicy(policy schedulerapi.Policy) error {
}
}
for _, extender := range policy.ExtenderConfigs {
if extender.Weight < 0 {
validationErrors = append(validationErrors, fmt.Errorf("Priority for extender %s should have a non negative weight applied to it", extender.URLPrefix))
}
}
return utilerrors.NewAggregate(validationErrors)
}