--output-version="": Output the formatted object with the given version (default api-version)
--output-version="": Output the formatted object with the given version (default api-version)
--overrides="": An inline JSON override for the generated object. If this is non-empty, it is parsed used to override the generated object
--overrides="": An inline JSON override for the generated object. If this is non-empty, it is parsed used to override the generated object. Requires that the object supply a valid apiVersion field.
-r, --replicas=1: Number of replicas to create for this container. Default 1
-r, --replicas=1: Number of replicas to create for this container. Default 1
-s, --server="": The address of the Kubernetes API server
-s, --server="": The address of the Kubernetes API server
--stderrthreshold=2: logs at or above this threshold go to stderr
--stderrthreshold=2: logs at or above this threshold go to stderr
<start a single instance of nginx, but overload the desired state with a partial set of values parsed from JSON`,
Run:func(cmd*cobra.Command,args[]string){
Run:func(cmd*cobra.Command,args[]string){
iflen(args)!=1{
iflen(args)!=1{
usageError(cmd,"<name> is required for run")
usageError(cmd,"<name> is required for run")
...
@@ -84,6 +87,6 @@ Examples:
...
@@ -84,6 +87,6 @@ Examples:
cmd.Flags().IntP("replicas","r",1,"Number of replicas to create for this container. Default 1")
cmd.Flags().IntP("replicas","r",1,"Number of replicas to create for this container. Default 1")
cmd.Flags().Bool("dry-run",false,"If true, only print the object that would be sent, don't actually do anything")
cmd.Flags().Bool("dry-run",false,"If true, only print the object that would be sent, don't actually do anything")
cmd.Flags().StringP("labels","l","","Labels to apply to the pod(s) created by this call to run.")
cmd.Flags().StringP("labels","l","","Labels to apply to the pod(s) created by this call to run.")
cmd.Flags().String("overrides","","An inline JSON override for the generated object. If this is non-empty, it is parsed used to override the generated object")
cmd.Flags().String("overrides","","An inline JSON override for the generated object. If this is non-empty, it is parsed used to override the generated object. Requires that the object supply a valid apiVersion field.")