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
pull/6/head
Kubernetes Submit Queue 2016-09-16 05:44:33 -07:00 committed by GitHub
commit 8c48469213
1 changed files with 2 additions and 0 deletions

View File

@ -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, " | ")
}