mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 06:27:05 +00:00
Merge pull request #32353 from smarterclayton/stable_sort
Automatic merge from submit-queue Doc page for scheduler is not stable (for man pages) Need to sort maps that are included in help output
This commit is contained in:
commit
8c48469213
@ -19,6 +19,7 @@ package factory
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"regexp"
|
"regexp"
|
||||||
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
@ -375,5 +376,6 @@ func ListAlgorithmProviders() string {
|
|||||||
for name := range algorithmProviderMap {
|
for name := range algorithmProviderMap {
|
||||||
availableAlgorithmProviders = append(availableAlgorithmProviders, name)
|
availableAlgorithmProviders = append(availableAlgorithmProviders, name)
|
||||||
}
|
}
|
||||||
|
sort.Strings(availableAlgorithmProviders)
|
||||||
return strings.Join(availableAlgorithmProviders, " | ")
|
return strings.Join(availableAlgorithmProviders, " | ")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user