mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-03 03:38:15 +00:00
Merge pull request #30733 from asalkeld/compat-test
Automatic merge from submit-queue Update scheduler config file compatibility tests **What this PR does / why we need it**: Added missing compatibility tests for scheduler config file options. **Which issue this PR fixes** fixes #30099 **Special notes for your reviewer**: I came up with the options based on the contents of default.go in each branch. **Release note**: ```release-note NONE ```
This commit is contained in:
@@ -347,6 +347,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
|
||||
|
||||
Reference in New Issue
Block a user