Update kubectl create subcommand to use printer flags

This commit is contained in:
derekwaynecarr
2016-01-27 16:18:35 -05:00
parent 1478cf345a
commit 06f26189f0
11 changed files with 113 additions and 5 deletions

View File

@@ -318,8 +318,6 @@ func AddApplyAnnotationFlags(cmd *cobra.Command) {
func AddGeneratorFlags(cmd *cobra.Command, defaultGenerator string) {
cmd.Flags().String("generator", defaultGenerator, "The name of the API generator to use.")
cmd.Flags().Bool("dry-run", false, "If true, only print the object that would be sent, without sending it.")
cmd.Flags().StringP("output", "o", "", "Output format. One of: json|yaml|wide|name|go-template=...|go-template-file=...|jsonpath=...|jsonpath-file=... See golang template [http://golang.org/pkg/text/template/#pkg-overview] and jsonpath template [http://releases.k8s.io/HEAD/docs/user-guide/jsonpath.md].")
cmd.Flags().String("output-version", "", "Output the formatted object with the given version (default api-version).")
}
func ReadConfigDataFromReader(reader io.Reader, source string) ([]byte, error) {