mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-15 06:43:54 +00:00
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:
commit
1b6189ea68
@ -21,6 +21,7 @@ import (
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"sort"
|
||||
|
||||
"github.com/lithammer/dedent"
|
||||
"github.com/pkg/errors"
|
||||
@ -172,6 +173,7 @@ func getSupportedComponentConfigAPIObjects() []string {
|
||||
for componentType := range componentconfigs.Known {
|
||||
objects = append(objects, string(componentType))
|
||||
}
|
||||
sort.Strings(objects)
|
||||
return objects
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user