Annotate kubectl describe with describable object for bash completions

This commit is contained in:
Eric Paris
2015-03-17 13:01:33 -04:00
parent 037407f49e
commit f272e836e0
3 changed files with 40 additions and 17 deletions

View File

@@ -22,6 +22,7 @@ import (
"github.com/spf13/cobra"
"github.com/GoogleCloudPlatform/kubernetes/pkg/kubectl"
cmdutil "github.com/GoogleCloudPlatform/kubernetes/pkg/kubectl/cmd/util"
"github.com/GoogleCloudPlatform/kubernetes/pkg/kubectl/resource"
)
@@ -38,6 +39,7 @@ given resource.`,
err := RunDescribe(f, out, cmd, args)
cmdutil.CheckErr(err)
},
ValidArgs: kubectl.DescribableResources(),
}
return cmd
}