mirror of https://github.com/k3s-io/k3s
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 outputpull/6/head
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