mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +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 (
|
||||
"fmt"
|
||||
"regexp"
|
||||
"sort"
|
||||
"strings"
|
||||
"sync"
|
||||
|
||||
@ -375,5 +376,6 @@ func ListAlgorithmProviders() string {
|
||||
for name := range algorithmProviderMap {
|
||||
availableAlgorithmProviders = append(availableAlgorithmProviders, name)
|
||||
}
|
||||
sort.Strings(availableAlgorithmProviders)
|
||||
return strings.Join(availableAlgorithmProviders, " | ")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user