Sort kubeadm CLI default params for component config API objects
Change-Id: If4ba57d528f925de9d536b18c0e6d71fc6d63659
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user