Merge pull request #78695 from dims/sort-list-of-component-config-API-objects-in-cli

Sort kubeadm CLI default params for component config API objects
This commit is contained in:
Kubernetes Prow Robot 2019-06-17 05:54:23 -07:00 committed by GitHub
commit 1b6189ea68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,6 +21,7 @@ import (
"fmt" "fmt"
"io" "io"
"io/ioutil" "io/ioutil"
"sort"
"github.com/lithammer/dedent" "github.com/lithammer/dedent"
"github.com/pkg/errors" "github.com/pkg/errors"
@ -172,6 +173,7 @@ func getSupportedComponentConfigAPIObjects() []string {
for componentType := range componentconfigs.Known { for componentType := range componentconfigs.Known {
objects = append(objects, string(componentType)) objects = append(objects, string(componentType))
} }
sort.Strings(objects)
return objects return objects
} }