cmd.Flags().String("output-directory","","Where to output the files. If empty or '-' uses stdout, otherwise creates a directory hierarchy in that directory")
cmd.Flags().StringSlice("namespaces",[]string{},"A comma separated list of namespaces to dump.")
cmd.Flags().Bool("all-namespaces",false,"If true, dump all namespaces. If true, --namespaces is ignored.")
returncmd
}
const(
dumpLong=`
Dumps cluster info out suitable for debugging and diagnosing cluster problems. By default, dumps everything to
stdout. You can optionally specify a directory with --output-directory. If you specify a directory, kubernetes will
build a set of files in that directory. By default only dumps things in the 'kube-system' namespace, but you can
switch to a different namespace with the --namespaces flag, or specify --all-namespaces to dump all namespaces.
`
dumpExample=` # Dump current cluster state to stdout