Scheduler extension
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user