Merge pull request #1004 from Liujingfang1/prune

change field name: prune -> inventory
This commit is contained in:
Kubernetes Prow Robot
2019-04-22 15:14:07 -07:00
committed by GitHub
10 changed files with 29 additions and 28 deletions

View File

@@ -178,8 +178,8 @@ func NewCmdBuildPrune(
var o Options
cmd := &cobra.Command{
Use: "alpha-prune [path]",
Short: "Print configmap to prune previous applied objects",
Use: "alpha-inventory [path]",
Short: "Print the inventory object which contains a list of all other objects",
Example: examples,
SilenceUsage: true,
RunE: func(cmd *cobra.Command, args []string) error {

View File

@@ -69,7 +69,7 @@ func determineFieldOrder() []string {
"Configurations",
"Generators",
"Transformers",
"Prune",
"Inventory",
}
// Add deprecated fields here.

View File

@@ -48,7 +48,7 @@ func TestFieldOrder(t *testing.T) {
"Configurations",
"Generators",
"Transformers",
"Prune",
"Inventory",
}
actual := determineFieldOrder()
if len(expected) != len(actual) {