cmd.Flags().StringVar(&o.OutputDir,"output-directory","",i18n.T("Where to output the files. If empty or '-' uses stdout, otherwise creates a directory hierarchy in that directory"))
cmd.Flags().StringSliceVar(&o.Namespaces,"namespaces",[]string{},"A comma separated list of namespaces to dump.")
cmd.Flags().BoolVar(&o.AllNamespaces,"all-namespaces",false,"If true, dump all namespaces. If true, --namespaces is ignored.")
cmd.Flags().StringVar(&o.OutputDir,"output-directory",o.OutputDir,i18n.T("Where to output the files. If empty or '-' uses stdout, otherwise creates a directory hierarchy in that directory"))
cmd.Flags().StringSliceVar(&o.Namespaces,"namespaces",o.Namespaces,"A comma separated list of namespaces to dump.")
cmd.Flags().BoolVar(&o.AllNamespaces,"all-namespaces",o.AllNamespaces,"If true, dump all namespaces. If true, --namespaces is ignored.")
cmd.Flags().StringP("selector","l","","Selector (label query) to filter on, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2)")
cmd.Flags().Bool("all-namespaces",false,"If present, list the requested object(s) across all namespaces. Namespace in current context is ignored even if specified with --namespace.")
cmd.Flags().StringVarP(&o.Selector,"selector","l",o.Selector,"Selector (label query) to filter on, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2)")
cmd.Flags().BoolVar(&o.AllNamespaces,"all-namespaces",o.AllNamespaces,"If present, list the requested object(s) across all namespaces. Namespace in current context is ignored even if specified with --namespace.")
cmd.Flags().BoolVar(&o.DescriberSettings.ShowEvents,"show-events",o.DescriberSettings.ShowEvents,"If true, display events related to the described object.")
cmd.Flags().StringVar(&o.FieldSelector,"field-selector",o.FieldSelector,"Selector (field query) to filter on, supports '=', '==', and '!='.(e.g. --field-selector key1=value1,key2=value2). The server only supports a limited number of field queries per type.")
cmd.Flags().BoolVar(&o.AllNamespaces,"all-namespaces",o.AllNamespaces,"If present, list the requested object(s) across all namespaces. Namespace in current context is ignored even if specified with --namespace.")
cmdutil.AddIncludeUninitializedFlag(cmd)
addOpenAPIPrintColumnFlags(cmd)
addServerPrintColumnFlags(cmd)
addOpenAPIPrintColumnFlags(cmd,o)
addServerPrintColumnFlags(cmd,o)
cmd.Flags().BoolVar(&o.Export,"export",o.Export,"If true, use 'export' for the resources. Exported resources are stripped of cluster-specific information.")
cmdutil.AddFilenameOptionFlags(cmd,&o.FilenameOptions,"identifying the resource to get from a server.")
cmd.Flags().Bool(useOpenAPIPrintColumnFlagLabel,false,"If true, use x-kubernetes-print-column metadata (if present) from the OpenAPI schema for displaying a resource.")
cmd.Flags().BoolVar(&opt.PrintWithOpenAPICols,useOpenAPIPrintColumnFlagLabel,opt.PrintWithOpenAPICols,"If true, use x-kubernetes-print-column metadata (if present) from the OpenAPI schema for displaying a resource.")
}
funcaddServerPrintColumnFlags(cmd*cobra.Command){
cmd.Flags().Bool(useServerPrintColumns,true,"If true, have the server return the appropriate table output. Supports extension APIs and CRDs.")
cmd.Flags().BoolVar(&opt.ServerPrint,useServerPrintColumns,opt.ServerPrint,"If true, have the server return the appropriate table output. Supports extension APIs and CRDs.")
cmd.Flags().String("generator","",i18n.T("The name of the API generator to use, see http://kubernetes.io/docs/user-guide/kubectl-conventions/#generators for a list."))
cmd.Flags().String("image","",i18n.T("The image for the container to run."))
cmd.Flags().StringVar(&opt.Generator,"generator",opt.Generator,i18n.T("The name of the API generator to use, see http://kubernetes.io/docs/user-guide/kubectl-conventions/#generators for a list."))
cmd.Flags().StringVar(&opt.Image,"image",opt.Image,i18n.T("The image for the container to run."))
cmd.MarkFlagRequired("image")
cmd.Flags().String("image-pull-policy","",i18n.T("The image pull policy for the container. If left empty, this value will not be specified by the client and defaulted by the server"))
cmd.Flags().IntP("replicas","r",1,"Number of replicas to create for this container. Default is 1.")
cmd.Flags().String("overrides","",i18n.T("An inline JSON override for the generated object. If this is non-empty, it is used to override the generated object. Requires that the object supply a valid apiVersion field."))
cmd.Flags().StringArray("env",[]string{},"Environment variables to set in the container")
cmd.Flags().String("serviceaccount","","Service account to set in the pod spec")
cmd.Flags().String("port","",i18n.T("The port that this container exposes. If --expose is true, this is also the port used by the service that is created."))
cmd.Flags().StringVar(&opt.Port,"port",opt.Port,i18n.T("The port that this container exposes. If --expose is true, this is also the port used by the service that is created."))
cmd.Flags().Int("hostport",-1,"The host port mapping for the container port. To demonstrate a single-machine container.")
cmd.Flags().StringP("labels","l","","Comma separated labels to apply to the pod(s). Will override previous values.")
cmd.Flags().BoolP("stdin","i",false,"Keep stdin open on the container(s) in the pod, even if nothing is attached.")
cmd.Flags().BoolP("tty","t",false,"Allocated a TTY for each container in the pod.")
cmd.Flags().Bool("attach",false,"If true, wait for the Pod to start running, and then attach to the Pod as if 'kubectl attach ...' were called. Default false, unless '-i/--stdin' is set, in which case the default is true. With '--restart=Never' the exit code of the container process is returned.")
cmd.Flags().Bool("leave-stdin-open",false,"If the pod is started in interactive mode or with stdin, leave stdin open after the first attach completes. By default, stdin will be closed after the first attach completes.")
cmd.Flags().BoolVarP(&opt.Interactive,"stdin","i",opt.Interactive,"Keep stdin open on the container(s) in the pod, even if nothing is attached.")
cmd.Flags().BoolVarP(&opt.TTY,"tty","t",opt.TTY,"Allocated a TTY for each container in the pod.")
cmd.Flags().BoolVar(&opt.Attach,"attach",opt.Attach,"If true, wait for the Pod to start running, and then attach to the Pod as if 'kubectl attach ...' were called. Default false, unless '-i/--stdin' is set, in which case the default is true. With '--restart=Never' the exit code of the container process is returned.")
cmd.Flags().BoolVar(&opt.LeaveStdinOpen,"leave-stdin-open",opt.LeaveStdinOpen,"If the pod is started in interactive mode or with stdin, leave stdin open after the first attach completes. By default, stdin will be closed after the first attach completes.")
cmd.Flags().String("restart","Always",i18n.T("The restart policy for this Pod. Legal values [Always, OnFailure, Never]. If set to 'Always' a deployment is created, if set to 'OnFailure' a job is created, if set to 'Never', a regular pod is created. For the latter two --replicas must be 1. Default 'Always', for CronJobs `Never`."))
cmd.Flags().Bool("command",false,"If true and extra arguments are present, use them as the 'command' field in the container, rather than the 'args' field which is the default.")
cmd.Flags().String("requests","",i18n.T("The resource requirement requests for this container. For example, 'cpu=100m,memory=256Mi'. Note that server side components may assign requests depending on the server configuration, such as limit ranges."))
cmd.Flags().String("limits","",i18n.T("The resource requirement limits for this container. For example, 'cpu=200m,memory=512Mi'. Note that server side components may assign limits depending on the server configuration, such as limit ranges."))
cmd.Flags().Bool("expose",false,"If true, a public, external service is created for the container(s) which are run")
cmd.Flags().BoolVar(&opt.Expose,"expose",opt.Expose,"If true, a public, external service is created for the container(s) which are run")
cmd.Flags().String("service-generator","service/v2",i18n.T("The name of the generator to use for creating a service. Only used if --expose is true"))
cmd.Flags().String("service-overrides","",i18n.T("An inline JSON override for the generated service object. If this is non-empty, it is used to override the generated object. Requires that the object supply a valid apiVersion field. Only used if --expose is true."))
cmd.Flags().Bool("record",false,"Record current kubectl command in the resource annotation. If set to false, do not record the command. If set to true, record the command. If not set, default to updating the existing annotation value only if one already exists.")
cmd.Flags().Bool("all",false,"Select all resources, including uninitialized ones, in the namespace of the specified resource types")
cmd.Flags().Bool("local",false,"If true, set selector will NOT contact api-server but run locally.")
cmd.Flags().BoolVar(&o.all,"all",o.all,"Select all resources, including uninitialized ones, in the namespace of the specified resource types")
cmd.Flags().BoolVar(&o.local,"local",o.local,"If true, set selector will NOT contact api-server but run locally.")
cmd.Flags().String("resource-version","","If non-empty, the selectors update will only succeed if this is the current resource-version for the object. Only valid when specifying a single resource.")