Update scheduler config file compatibility tests

Co-Authored-By: Jordan Liggitt <jliggitt@redhat.com>
This commit is contained in:
Angus Salkeld
2016-08-18 16:07:26 +10:00
parent e4909db6a3
commit 27f1f854ba
2 changed files with 256 additions and 4 deletions

View File

@@ -311,6 +311,28 @@ func validatePriorityOrDie(priority schedulerapi.PriorityPolicy) {
}
}
func ListRegisteredFitPredicates() []string {
schedulerFactoryMutex.Lock()
defer schedulerFactoryMutex.Unlock()
names := []string{}
for name := range fitPredicateMap {
names = append(names, name)
}
return names
}
func ListRegisteredPriorityFunctions() []string {
schedulerFactoryMutex.Lock()
defer schedulerFactoryMutex.Unlock()
names := []string{}
for name := range priorityFunctionMap {
names = append(names, name)
}
return names
}
// ListAlgorithmProviders is called when listing all available algorithm providers in `kube-scheduler --help`
func ListAlgorithmProviders() string {
var availableAlgorithmProviders []string